Adam, That will work as long as you only have one domain or want to search a single domain. If you need to perform a deep search of the entire forest change LDAP: to GC: and search the Global Catalog.
As long as the attribute you're search for is in the GC this works quite well. --Greg -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Berns Sent: Friday, March 14, 2003 20:12 To: NT 2000 Discussions Subject: Re: vbs script to create new users Figured it out... <LDAP://DC=domain,DC=COM>;(&(objectCategory=Person)(objectClass=user)(sA MAccountName="&username&"));sAMAccountName;subTree" ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to %%email.unsub%% ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
