I'm looking at cloning our OU structure in AD.
Basically I need to create a new Top Level OU and then winthin that copy OUS from a existing OU to that one.
Current OU is Client Computers
Within that are some sub OUs
and with them more sub OUs
I wish to create a new OU called NEW Client Computers and then have the same structure that is within Client Computers
I've found the following site that explains it better http://globalknowledgeblog.com/technology/microsoft/cloning-parallel-ou-hierarchy/
However when i try to use the command dsquery ou | select-string i get an error saying its "not recognized as an Internal Or external command"
Is there another way i can do this using powershell? or can some tell me how to get the dsquery command to work