PowerShell – ReadHost Continue on ‘y’

Occasionally, we are required to gather data from the most unreliable element of the computing milieu: the user.  The goal is to acquire to appropriate response, while discarding junk reponses, and preventing the user from blowing up the entire automation process.  The while loop below does just that, while maintaining its girlish figure. $query = … [Read more…]

PowerShell Script to Copy OUs and Groups from AD Including Group Membership

There is an updated version of this AD Administration PowerShell script that is much simpler. I couldn’t find a clean method to export group membership from AD. LDIF notoriously does not allow importing the MemberOf attribute, so I began looking for a way through PowerShell. I found a method using Quest’s AD Tools SnapIn. The code below … [Read more…]