Quick AD Search Example

I was emailing with another instructor tonight and wrote a quick snippet to search AD for an object with a particular SID.  This is quick and way too simple for production, but it just shows how easily you can search AD.  This is with Powershell v1 $searcher = new-object system.directoryservices.directorysearcher $searcher.filter = “(objectsid=S-1-5-21-……)" #clearly a…

0