TestimoX

API Reference

Command

Get-CxSmbShareAcl

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.Smb.SmbSharePermissionEntry

Returns the share-level ACL for an SMB share.

Examples

Authored help example

Example 1: Reads the share ACL for the local Data share.

PS>


Get-CxSmbShareAcl -ShareName Data
        

Example 2: Audits the share-level permissions on a remote departmental file share.

PS>


Get-CxSmbShareAcl -ComputerName FS01 -ShareName Finance
        

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

Get-CxSmbShareAcl -ShareName <string> [-ComputerName <string>] [<CommonParameters>]
#

Parameters

ShareName string requiredposition: 0pipeline: false
Name of the SMB share whose share-level permissions should be returned.
ComputerName string optionalposition: 1pipeline: true (ByValue, ByPropertyName)
Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.

Outputs

ComputerX.Smb.SmbSharePermissionEntry