Skip to content

Get‑SmbShareAccessRule

raandree edited this page Sep 6, 2026 · 1 revision

SYNOPSIS

Gets access rules from local SMB share DACLs.

SYNTAX

Get-SmbShareAccessRule [-Name] <Object[]> [-Account <Object[]>] [-ExcludeInherited] [-ExcludeExplicit]
 [-ThrottleLimit <Int32>] [<CommonParameters>]

DESCRIPTION

Reads ordinary local share DACLs and emits exact typed access rules without combining them with permissions on the backing filesystem.

EXAMPLES

EXAMPLE 1

Get-SmbShareAccessRule -Name 'Data$' -Account Everyone

Gets Everyone rules from the local Data share DACL.

PARAMETERS

-Account

Filters results by account names, SIDs, identity references, or module identities.

Type: Object[]
Parameter Sets: (All)
Aliases: IdentityReference, ID

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ExcludeExplicit

Excludes explicit ACEs; share DACLs do not define inheritance semantics.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ExcludeInherited

Excludes inherited ACEs; managed share ACEs are normally explicit.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Name

One or more unqualified local SMB share names.

Type: Object[]
Parameter Sets: (All)
Aliases: ShareName

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-ThrottleLimit

Limits concurrently processed canonical share targets from 1 through 64.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: [Math]::Max(1, [Math]::Min(8, [Environment]::ProcessorCount))
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

WindowsAccessControl.SmbShareAccessRule

NOTES

RELATED LINKS

Home

Commands

DSC resources

Clone this wiki locally