I am new to scripting and hope this is an easy problem to fix. I try to connect to a user object in AD Users and Computers and I get this error....
"An invalid dn syntax has been specified" on Line 2 with Code: 80072032.
Here is the code:
Set objUser = GetObject("LDAP://CN=\\User,Joe,OU=test,DC=domain,DC=com"
objUser.Put "description", "This is a test1"
objUser.SetInfo
It works great if the CN is equal to one word like TestAccount. All of our user's CN are LastName, FirstName. When I ran a csvde.exe to export AD info, the CN are shown as "LastName\\, FirstName".
Any help will be appreciated.
Thanks.
"An invalid dn syntax has been specified" on Line 2 with Code: 80072032.
Here is the code:
Set objUser = GetObject("LDAP://CN=\\User,Joe,OU=test,DC=domain,DC=com"
objUser.Put "description", "This is a test1"
objUser.SetInfo
It works great if the CN is equal to one word like TestAccount. All of our user's CN are LastName, FirstName. When I ran a csvde.exe to export AD info, the CN are shown as "LastName\\, FirstName".
Any help will be appreciated.
Thanks.