Skip to content

Instantly share code, notes, and snippets.

@fenneh
Created August 13, 2012 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fenneh/3340724 to your computer and use it in GitHub Desktop.
Save fenneh/3340724 to your computer and use it in GitHub Desktop.
Get All users from AD
New-PSDrive -PSProvider ActiveDirectory -Name ADUser -Root "" -Server "dc1.lolololol.com"
pushd ADUser:
Get-ADUser -Filter * | Out-File "$env:temp\hihi.txt" -Encoding Default
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment