VB Scripting
From: Mat (Mat_at_discussions.microsoft.com)
Date: 10/13/04
- Next message: Chico: "Re: login restrictions"
- Previous message: Bruce Musgrove: "Re: Win 2003 servers hang at "Applying computer settings" just before the logon"
- Next in thread: Tomasz Onyszko: "Re: VB Scripting"
- Reply: Tomasz Onyszko: "Re: VB Scripting"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 13 Oct 2004 09:01:35 -0700
I'm connecting to our AD database using the following statements in a VB
Script to pull out the user name and phone number:
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.Properties("Sort On") = "Name"
objCommand.CommandText = "<LDAP://MY_DOMAIN>;(objectCategory=user)" &
";ADsPath,Name,telephoneNumber;subtree"
Set objRecordSet = objCommand.Execute
It all appears to work ok, but when I check the logs from the script it
appears to only be searching through the first 1000 users in the database.
Can anyone tell me if there's a limit to how many users you can search
through using the above command? Or, does anyone have any other ideas on
what's happening?
Any help is appreciated
- Next message: Chico: "Re: login restrictions"
- Previous message: Bruce Musgrove: "Re: Win 2003 servers hang at "Applying computer settings" just before the logon"
- Next in thread: Tomasz Onyszko: "Re: VB Scripting"
- Reply: Tomasz Onyszko: "Re: VB Scripting"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|