Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@techthoughts2
Last active November 12, 2017 17:39
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 techthoughts2/56e254ad34bef53e20dc7e1d4fd309ee to your computer and use it in GitHub Desktop.
Save techthoughts2/56e254ad34bef53e20dc7e1d4fd309ee to your computer and use it in GitHub Desktop.
TBD
#it is possible to query ad without ad cmdlets or rsat on device using ldap
$filter = '(&(objectCategory=computer))'
$searcher = [ADSISearcher]$filter
# search results only
$searcher.FindAll()
# access to directory entry objects with more details
$searcher.FindAll().GetDirectoryEntry() | Select-Object -Property *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment