Searching the AD

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

Guest

We use custom logon scripts for our users and I need to search the AD to find
out which users have a certain script assigned to them?
 
Hello Navar.
You can use dsquery to search active directory.

dsquery * -filter (ScriptPath=*)

replace the * with the script name.

--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
 
As well as you can use ADO to perform search against AD. This would be
useful if you need to use output for other purposes (like to pass to
other script).
 
Yes that's right, the first one means the search will run against the whole
forest.

--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
 
I also found ou that I can use the (ScriptPath=*) for a custom filter in AD
Users and Computers.
 
Back
Top