Get‐SMBSecurity - microsoft/SMBSecurity GitHub Wiki
Retrieves one or more SMB SecurityDescriptor.
Get-SMBSecurity [[-SecurityDescriptorName] <String>] [<CommonParameters>]
Retrieves one or more SMB SecurityDescriptor (SD) from the local registry. The SDs are converted into an SMBSecurityDescriptor object that can be used to modify the SMB server security capabilities of the Windows computer.
PS C:\> Get-SMBSecurityReturns an array of SMBSecurityDescriptors for all SMB SDs on the system.
PS C:\> $sdDefaultShareInfo = Get-SMBSecurity -SecurityDescriptorName SrvsvcDefaultShareInfoReturns a single SMBSecurityDescriptor object for SrvsvcDefaultShareInfo.
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: False
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.