Quick Script to Edit a Single Attribute in AD on a Single User Account

There are no real dependencies for this script, PSv1 or v2, no snap-ins, no modules….just plain old PS (POPS 🙂 ).  No magic happening here, just some basic read-host and ADSI in play.  I wrote it for a colleague and thought I would share. #This will probably only work for strings and simple numbers and…

0

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