G Guest Oct 29, 2004 #1 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?
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?
C Chriss3 [MVP] Oct 30, 2004 #2 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
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
E Eugene Byelyakov Oct 31, 2004 #3 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).
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).
C Chriss3 [MVP] Nov 2, 2004 #5 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
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
G Guest Nov 2, 2004 #6 I also found ou that I can use the (ScriptPath=*) for a custom filter in AD Users and Computers.