Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What am I doing wrong? 2

Status
Not open for further replies.
Jun 13, 2013
7
0
0
I keep getting Line 4 invalid character. Code 800A0408. I have looked at many exampled on the web and everything lines up ok. I am not sure what I am missing. I have underlined and bold line for. Any help I would appreciate. Thanks.

This script is to add an alias to a user account. I will eventually read a txt file and apply to many users.

Code:
Set wshNetwork = Wscript.CreateObject("Wscript.Network")
Const ADS_PROPERTY_APPEND = 3
Set objUser = GetObject ("LDAP://cn=foo_user, ou=foo, ou=TEST, dc=foo, dc=com")
[b][u]objUser.PutEx ADS_PROPERTY_APPEND, “proxyAddresses”, Array(“fooyou@foo.com")[/b][/u]
objUser.SetInfo
 
Ummm.... no, that site correctly shows that ascii 34 is a double-quote and ascii 47 is a forward-slash.
 
147

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
I am on too many drugs. I can't see or read. Thanks for your help everyone. The script is working once I replaced the character.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top