AD question computer OU

Hi

How to find out what OU a computer is in


Thank you
GST-GRIDTECHAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
FOXConnect With a Mentor Active Directory/Exchange EngineerCommented:
In Active Directory users and computers set your view to Users, contacts, and computers as Containers
and also click Advanced features

Right click the computer, then click properties then click the object tab
Another tab you can select is the attribute editor and scroll down to distinguished name.

if you want to do a powershell command
Get-Adcomputer  computername -properties * | select distinguishedname
0
 
Darrell PorterConnect With a Mentor Enterprise Business Process ArchitectCommented:
It should be noted that, if you're not on a domain controller, you will need to install the Active Directory module for Powershell and, as part of your powershell sequence/script, you will need to

Import-Module ActiveDirectory

for the Get-ADComputer command to work.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.