Skip to content

Instantly share code, notes, and snippets.

@obscuresec
Created May 18, 2014 21:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obscuresec/bd30a8431ee4bc32f1cd to your computer and use it in GitHub Desktop.
Save obscuresec/bd30a8431ee4bc32f1cd to your computer and use it in GitHub Desktop.
powershell.exe -com '([adsisearcher]'objectCategory=Computer').Findall() | ForEach {$_.properties.cn}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment