Query for computers and OU

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'd like to query AD for all computers in the domain and also show the OU
they are in.
So far I've got a list of all computers but not their OU.
I've done some searches to see if there is a script for this but so far
haven't been able to find anything. I'm not a scripting person yet so cannot
modify scripts easily.
Some of the psots I have found seem to indicate that it is not possible to
display the OU as well as the Computer account.
Any pointers would be gratefully received!
Many thanks
 
I'd like to query AD for all computers in the domain and also show the OU
they are in.
So far I've got a list of all computers but not their OU.
I've done some searches to see if there is a script for this but so far
haven't been able to find anything. I'm not a scripting person yet so cannot
modify scripts easily.
Some of the psots I have found seem to indicate that it is not possible to
display the OU as well as the Computer account.
Any pointers would be gratefully received!
Many thanks

See tip 10120 » How can I return all the computer names in my domain, sorted by DN within Container and/or OU?
at http://www.jsifaq.com/SUBU/tip10100/rh10120.htm

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Ah no. There is almost never a reason to be connected directly to a DC to manage
AD in a normal fashion. DR/promote/demote is another story.

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm
 
Back
Top