Question Locked

Script to search for a computer in AD

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

new to the site...

I am a desktop support person at my company and wanted to know if there is a way to script a way to search the ENTIRE active directory for a computer and display an output of what OU the computer is in.

Don't know if this can be done or not, but i thought this might be a good idea to stream line a couple tasks someone in my role might have.

Thanks in advance.
Snay

5 replies

by robo_dev

Any garden-variety LDAP query tool such as Softerra LDAP browser can either query in real time, or do a LDIF export for later review.

http://www.ldapbrowser.com/

There's a 'lite' version of Softerra that's free, AFAIK.

by ic-it

If you open Active directory Users and Computers, you can do a find (default is users, change to computers) do a find and then Name Mapping.
Note: Name mapping will not appear unless you select View - Advance features.

This discussion is closed to new replies.