I had a project where i needed to replicate the OU structure in a dummy test domain for validation of group policy objects (things like mapped drives/printers for groups) I created this script to export the OU structure from our existing AD environment into my lab environment. This can also be done with specific LDAP commands but I wanted to lea…
-
Updated
Jan 7, 2026 - PowerShell