Gets the sharing permissions on a file/SMB share.
Get-FileSharePermission [-Name] <String> [[-Identity] <String>] [<CommonParameters>]
Get-FileSharePermission function uses WMI to get the sharing permission on a file/SMB share. It returns the permissions as a
Carbon.Security.ShareAccessRule object, which has the following properties:
Security.Principal.NTAccountfor the user/group who has permission.
ShareRights are values from the
Carbon.Security.ShareRights enumeration. There are four values:
If the share doesn't exist, nothing is returned and an error is written.
Identity parameter to get a specific user/group's permissions. Wildcards are supported.
Get-FileSharePermission was added in Carbon 2.0.
|Name||Type||Description||Required?||Pipeline Input||Default Value|
The share's name.
Get permissions for a specific identity. Wildcards supported.
Get-FileSharePermission -Name 'Build'
Demonstrates how to get all the permissions on the