Thanks for the links, all. I've got it working now, writing any property a User object 
has to my ini file.

Thanks again,
Tony

>>> [EMAIL PROTECTED] 09/13/02 08:55AM >>>

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q187529&; 

-----Original Message-----
From: Tony Woods [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 13, 2002 11:41 AM
To: NT 2000 Discussions
Subject: RE: VBS Script


I actually changed my script to use ADO. This line returns information:

sUser = "TGWOODS"
strQuery = "<LDAP://VOICE.MAIL>;(&(objectClass=user)(sAMAccountName=" &sUser
&"));ADsPath;subtree"

Now I just need to figure out how to get the properties like firstName,
title, telephoneNumber ...etc. If anyone has some insight, that would be
great.

Cheers,
Tony

>>> [EMAIL PROTECTED] 09/12/02 02:51PM >>>
Your CN may be wrong.  Check the properties of the user on the Object tab
for the correct name of the container.  You might find it is something like
"domain.com/Users/Joe User."  The fun part is deciding whether to rename all
containers to conform to your login name standard, or to somehow get the
users' full name upon login so you can match it to the container name.  

-----Original Message-----
From: Tony Woods [mailto:[EMAIL PROTECTED]] 
Posted At: Thursday, September 12, 2002 12:49 PM
Posted To: NT Admin Lists
Conversation: VBS Script
Subject: OT: VBS Script


Hello,

I have a VBS script that needs to run when the user logs, query AD based on
the username and return some properties into a file on the C: drive. I've
got most of it worked out but the querying of AD is stopping me in my
tracks. I have a line that reads:

set objUser = GetObject("LDAP://vmail1/cn=tgwoods,dc=voice,dc=mail";) 

just for testing the script by double-clicking on it. When it gets to this
line, the error is "There is no such object on the server" If I change the
line to "WinNT:// ... with some other variables, I can get some info, but
not the stuff I want like firstName, sn and telephoneNumber...etc. Anyone
have any thoughts or suggestions? I tried testing the LDAP connection
through IE and the same thing happens "This object cannot be found"

Cheers,
Tony


------
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.unsub%%


------
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.unsub%%


------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to