TestimoX

API Reference

Command

Remove-CxSmbSharePermission

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
System.Boolean

Removes specific rights for an identity from an SMB share DACL.

Examples

Authored help example

Example 1


Remove-CxSmbSharePermission -ShareName Data -Identity DOMAIN\\Ops -Rights Read
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Remove-CxSmbSharePermission [-ComputerName <string>] -ShareName <string> -Identity <string> -Rights <Read|Change|FullControl> [-Deny] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
ShareName string requiredposition: 1pipeline: false
Gets or sets the ShareName parameter.
Identity string requiredposition: 2pipeline: true (ByValue, ByPropertyName)
Account or security identifier (SID) to apply.
Rights SmbShareRights requiredposition: 3pipeline: falsevalues: 3
Access rights or permission mask to apply. Possible values: Read, Change, FullControl
Possible values: Read, Change, FullControl
Deny SwitchParameter optionalposition: 4pipeline: false
Gets or sets the Deny parameter.

Outputs

System.Boolean