IXguru2013
MIS
- Jun 13, 2013
- 7
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.
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