CmdID / PowerShell / Cmdlets / Revoke
Revoke-SmbShareAccess
Removes all of the allow ACEs for a trustee from the security descriptor of the SMB share. Windows Server PowerShell reference
From the Windows Server PowerShell reference 11 parameters Its page in the reference
Parameters
-AccountNameSpecifies an array of names of the trustees.-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 an array of names of the SMB shares.-ScopeNameSpecifies an array of names of the scopes.-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.