Get‐SMBSecurityDescriptorRight - microsoft/SMBSecurity GitHub Wiki
Returns a hashtable of valid rights for the given SMB SecurityDescriptor (SD).
Get-SMBSecurityDescriptorRight [-SecurityDescriptorName] <String> [<CommonParameters>]
Returns a hashtable of valid rights for the given SMB SecurityDescriptor (SD). The hashtable invludes the right name, which is used other SMBSecurity cmdlets like Set-SMBSecurityDACL, with its corresponding DACL value.
PS C:\> Get-SMBSecurityDescriptorRight -SecurityDescriptorName SrvsvcDefaultShareInfoOutputs a hashtable of valid rights for the SrvsvcDefaultShareInfo SMB SD.
The name of the SMB SecurityDescriptor. The valid set of names are: SrvsvcConfigInfo, SrvsvcConnection, SrvsvcFile, SrvsvcServerDiskEnum, SrvsvcSessionInfo, SrvsvcShareAdminConnect, SrvsvcShareAdminInfo, SrvsvcShareChange, SrvsvcShareConnect, SrvsvcShareFileInfo, SrvsvcSharePrintInfo, SrvsvcStatisticsInfo, SrvsvcTransportEnum, and SrvsvcDefaultShareInfo.
Type: String
Parameter Sets: (All)
Aliases: SDName, Name
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.