CmdID

CmdID / PowerShell / Cmdlets / Grant

Grant-SmbShareAccess

Adds an allow access control entry (ACE) for a trustee to the security descriptor of the Server Message Block (SMB) share. Windows Server PowerShell reference

From the Windows Server PowerShell reference 12 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

12 in the Windows Server PowerShell reference
-AccessRightSpecifies the access right to grant to the trustee.
-AccountNameSpecifies the name of the trustee.
-AsJobRuns the cmdlet as a background job.
-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.
-ForceForces the command to run without asking for user confirmation.
-InputObjectSpecifies the input object that is used in a pipeline command.
-NameSpecifies the name of the SMB share.
-ScopeNameSpecifies the scope of the share by name.
-SmbInstanceSpecifies the input to this cmdlet.
-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.
-Confirm, -cfPrompts you for confirmation before running the cmdlet.
-WhatIf, -wiShows what would happen if the cmdlet runs.