Skip to content

Instantly share code, notes, and snippets.

@ntrogers
Last active September 8, 2017 15:37
Show Gist options
  • Save ntrogers/7433fa552b0f2b8acd29f6661aa341a4 to your computer and use it in GitHub Desktop.
Save ntrogers/7433fa552b0f2b8acd29f6661aa341a4 to your computer and use it in GitHub Desktop.
[AD - List AD OUs] List all AD OUs in a domain #Windows #Powershell #ActiveDirectory
Get-ADOrganizationalUnit -filter * -SearchBase "DC=<domain>,dc=<path>”  | ft distinguishedname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment