If you need a mimic of LDAP structure for your lab, you can export OU using tools LDIFDE, it’s a built-in tools if you already install Active Directory, here it goes:

Export:

Ldifde –f exportOU.ldf –s SERVERProd –d “DC=CONTOSO,DC=com” –p subtree –r “(objectCategory=organizationalUnit)” –l “cn,objectclass,ou”

the command export the result into *.LDF file that we will use it again for importing to Server Lab

Import:

ldifde -i -f exportOu.ldf -s SERVERLab

Finish..!! Nerd smile

Advertisements