I am using scripts to create user logins in AD with Windows 2003 domain
controllers. When I try to create a user with the CN name being something
like "Blow, Joe" my script chokes. I can create a login with a CN name of
"Blow Joe", with a space, but not a comma. I get the rror message "Active
Directory: An invalid Active Directory pathname was passed." Same problem
when I try to read a specific CN that has a comma in it with a script. The
script chokes.
However, if you create a login using the utility Active Directory Users and
Computers, by default the CN name is created in the form of "Blow, Joe."
Also you can go in on the gui and manually change the CN name to contain a
comma.
Any suggestions on how to create a CN name with scripting?