Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Server 2003 / Active Directory / July 2005

Tip: Looking for answers? Try searching our database.

dsadd Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Donovan Linton - 28 Jul 2005 15:22 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
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.