Search computers in AD by location

  • Thread starter Thread starter Spale
  • Start date Start date
S

Spale

Is there any way to search computers in AD by location?For example when i
open AD users and computers and select one computer and select properties
for that computer.In tab location i putt for instance Sarajevo SA1.Can i
later search this computer by this location?Same thing as printer location.
 
Is there any way to search computers in AD by location?For example when i
open AD users and computers and select one computer and select properties
for that computer.In tab location i putt for instance Sarajevo SA1.Can i
later search this computer by this location?Same thing as printer location.
See tip 7534 in the 'Tips & Tricks' at http://www.jsiinc.com

You will see that Location is not an option.

You can roll your own, using the Active Directory Command Line tools, tip 6820.

For instance:

dsquery * domainroot -filter
"(&(objectCategory=Computer)(objectClass=Computer)(location=xxx))" -attr
distinguishedName cn description location operatingSystem OperatingSystemVersion
-Limit 0

The above is one line.
Replace location=xxx with location=YourSearch
which can have wildcards.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top