Link to home
Start Free TrialLog in
Avatar of Twhite0909
Twhite0909

asked on

Export a Specific OU to CSV

I have loaded the QUEST add on to AD Powershell.  The cmd I found works but only for the top level OU called Locations.  I need to drill down to get users out of an OU that is two levels below the OU=Locations.......OU=Locations\HSG\UK

Here is the cmd what am I doing wrong  - Thanks

get-qaduser -searchroot "OU=Locations\HSG\UK,DC=AD,DC=LOCAL"
 | Select Name, Parentcontainer | Export-csv C:\temp\users1.csv -notype
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Twhite0909
Twhite0909

ASKER

.......