Skip to content

Instantly share code, notes, and snippets.

@obscuresec
Created May 18, 2014 21:36
Show Gist options
  • Save obscuresec/bba41defe6db2aaf09bd to your computer and use it in GitHub Desktop.
Save obscuresec/bba41defe6db2aaf09bd to your computer and use it in GitHub Desktop.
(cmd /c echo {([adsisearcher]'objectCategory=Computer').Findall() | ForEach {$_.properties.cn}}).split(' ')[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment