CmdID

CmdID / PowerShell / Cmdlets / Block

Block-SmbShareAccess

Adds a deny ACE for a trustee to the security descriptor of the SMB share. Windows Server PowerShell reference

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

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

Parameters

11 in the Windows Server PowerShell reference
-AccountNameSpecifies the name of the account for the user who is being denied access to the share.
-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 specified 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.