< Back

Get-AdsAcl

Fri Jan 10, 2020 7:33 pm

NAME Get-AdsAcl



SYNOPSIS

Reads the ACL from an AD object.





SYNTAX

Get-AdsAcl [-Path] <String[]> [[-Server] <String>] [[-Credential] <PSCredential>] [-EnableException]

[<CommonParameters>]





DESCRIPTION

Reads the ACL from an AD object.

Allows specifying the server to ask.





PARAMETERS

-Path <String[]>

The DistinguishedName path to the item.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Server <String>

The server / domain to connect to.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

The credentials to use for AD operations.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-EnableException [<SwitchParameter>]

This parameters disables user-friendly warnings and enables the throwing of exceptions.

This is less user friendly, but allows catching exceptions in calling scripts.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.DirectoryServices.ActiveDirectorySecurity





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-ADUser -Filter * | Get-AdsAcl



Returns the ACL of every user in the domain.











RELATED LINKS