Leadtheway
asked on
Powershell query for OU membership
I have a list of computers in a text file and I want to query AD to pull the OU they belong to. Is this possible, i know to query ad to pull the computer from the OU, but i want to take a preexisting list and query to get OU membership
Dsquery command will do this for you perfectly
ASKER
but I'd have to do one at a time right?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can you help with the syntax, I'm not familiar with dsquery, mostly use PS
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.