I writing a script to create user accounts using dsadd and exchmbx. My
problme is the UserDN, our organization uses Last Name, First fromat but I
can get dsadd to accept that here is what I've tried
dsadd user "CN=Linton, Donovan,CN=Users,DC=ad,DC=sfwmd,DC=gov"
dsadd user CN="Linton, Donovan",CN=Users,DC=ad,DC=sfwmd,DC=gov
I get error message incorrect format, I was wondering if any had any ideas
or soluitons.
Thanks,
Donovan
Donovan Linton - 28 Jul 2005 20:56 GMT
Found it
Commas must be escaped with the backslash \ character
> I writing a script to create user accounts using dsadd and exchmbx. My
> problme is the UserDN, our organization uses Last Name, First fromat but I
[quoted text clipped - 9 lines]
> Thanks,
> Donovan
Paul Williams [MVP] - 28 Jul 2005 22:16 GMT
Yep. You'd want:
C:\>dsadd user "CN=Linton\, Donovan,CN=Users,DC=ad,DC=sfwmd,DC=gov"
You still need the quotes for any spaces for specific parameters.

Signature
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
Jerold Schulman - 29 Jul 2005 18:27 GMT
>I writing a script to create user accounts using dsadd and exchmbx. My
>problme is the UserDN, our organization uses Last Name, First fromat but I
[quoted text clipped - 9 lines]
>Thanks,
>Donovan
This worked:
dsadd user "CN=Linton\, Donovsan,CN=Users,DC=JSIINC,DC=ORG" -fn Donovan -ln Linton -UPN LintonD@JSIINC.COM -samid LintonD -display "Linton\, Donovsan"
I needed to escape the comma ( \, )and define the related attributes.