TestimoX

API Reference

Command

Set-CxSmbSharePermission

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

Sets exact Allow/Deny rights for identities on an SMB share (replaces DACL with the provided identities).

Examples

Authored help example

Example 1


Set-CxSmbSharePermission -ShareName Data -Identity DOMAIN\\Ops -Rights FullControl
        

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

Set-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