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…]