Created
May 1, 2014 02:20
-
-
Save obscuresec/d40270da694322bfee75 to your computer and use it in GitHub Desktop.
Non Domain ADSI Searches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$DirEntry = New-Object DirectoryServices.DirectoryEntry('LDAP://dc=demo,dc=lab',$user,$pass) | |
$AdsiSearcher = New-Object DirectoryServices.DirectorySearcher($ADSI,"(objectCategory=User)") | |
$AdsiSearcher.findall() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment