Find a Users Organizational Unit (OU)

It’s quite simple to search for a user’s profile/details, but I have run into issues finding what OU that user is in. A common task is moving a user from one OU to another.

A solution a found was to use the GETADUSER command. Specifically:

getaduser -identity userAcctHere

Here are come of the fields returned:

DistinguishedName, is very helpful!

This also works for computers too using: getadcomputer.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit exceeded. Please complete the captcha once again.