Get-MtADDacls
Synopsis
Section titled “Synopsis”Collects Active Directory ACLs (Access Control Lists).
Syntax
Section titled “Syntax”Get-MtADDacls [[-DnBase] <String[]>] [-Refresh] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”Collects ACLs from AD objects including domains, OUs, GPOs, users, computers, and groups. Results are cached for the session to avoid repeated queries. Connect-Maester -Service ActiveDirectory must complete successfully before this command can collect or return data.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-MtADDaclsReturns cached DACLs or collects if not already cached. Returns no data unless Active Directory was explicitly connected through Connect-Maester.
Example 2
Section titled “Example 2”Get-MtADDacls -RefreshForces a fresh collection of ACL data from Active Directory.
Example 3
Section titled “Example 3”Get-MtADDacls -DnBase "OU=Users,DC=contoso,DC=com"Collects ACLs only from the specified OU.
Parameters
Section titled “Parameters”-DnBase
Section titled “-DnBase”The distinguished name base(s) to search. Defaults to the domain root.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Refresh
Section titled “-Refresh”Forces a refresh of the data from Active Directory, bypassing the cache.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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.