DSADD - Multiple object creation
 




IT Certification FAQ

 
|
Home
|
Microsoft
|
CISCO
|
CompTIA
|
Exam/Study FAQ
|
Employment FAQ
| Links  | Forums  |
Book Reviews


FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  ProfileProfile  Log in to check your private messagesPrivate messages  Log inLog in

DSADD - Multiple object creation

 
Post new topic   Reply to topic    Forum Index -> microsoft.public.windows.server.active_directory
Author Message
Simon
Guest





PostPosted: Wed May 17, 2006 1:24 pm    Post subject: DSADD - Multiple object creation Reply with quote

Hi,

New to AD, and currently working my way through 70-290 (which is going ok)

Anyway, having trouble creating multiple objects (users, computers) with the
DSADD command line tool. I can create a single instance of each fine, but
fail with attempts to create more than one object at a time. Here's my syntax:

dsadd computer "CN=PC1,OU=Computers,DC=Contoso,DC=com"
"CN=PC2,OU=COmputers,DC=Contoso,DC=com"

I get the following error message:

dsadd failed: 'CN=PC2,OU=Computers,DC=Contoso,DC=com' is an unknown parameter.

I'm obviously entering the wrong syntax somewhere, but according to the
MSPress book I have for 70-290 you can add multiple objects at a time by
entering the DN and putting a space between each object (which I have done
surely?)

Can someone please point out where I am going wrong with this command please?

Many thanks,

Simon
Back to top
Carlo Cacciafesta
Guest





PostPosted: Wed May 17, 2006 4:37 pm    Post subject: RE: DSADD - Multiple object creation Reply with quote

"Simon" wrote:
Quote:
Hi,

New to AD, and currently working my way through 70-290 (which is going ok)

Anyway, having trouble creating multiple objects (users, computers) with the
DSADD command line tool. I can create a single instance of each fine, but
fail with attempts to create more than one object at a time. Here's my syntax:

dsadd computer "CN=PC1,OU=Computers,DC=Contoso,DC=com"
"CN=PC2,OU=COmputers,DC=Contoso,DC=com"

I get the following error message:

dsadd failed: 'CN=PC2,OU=Computers,DC=Contoso,DC=com' is an unknown parameter.

I'm obviously entering the wrong syntax somewhere, but according to the
MSPress book I have for 70-290 you can add multiple objects at a time by
entering the DN and putting a space between each object (which I have done
surely?)

Can someone please point out where I am going wrong with this command please?

Many thanks,

Simon

You found an interesting question, I've nearly become mad to understand why
it doesn't work.

It doesn't work for design! If you run "dsadd computer /?" you can read:
"Syntax: dsadd computer <ComputerDN> (...)". That <ComputerDN> is the key.
The convention states that if it is possible to write more than one object's
DN (space delimited) it would be written as <ObjectDN ...>. If it's written
as <ObjectDN> it means that you can only write one.

In some switches, for example "-memberof" the syntax is "-memberof <Group
....>" which means that you can write more than one group.

For more information you can read this:
http://technet2.microsoft.com/WindowsServer/en/Library/714070bb-22a5-420b-ac0f-2f7c558f82fa1033.mspx?mfr=true

It doesn't solve but I hope it can help.

Regards,

Carlo
Back to top
Joe Richards [MVP]
Guest





PostPosted: Thu May 18, 2006 4:40 am    Post subject: Re: DSADD - Multiple object creation Reply with quote

:)

The courseware is often called propaganda...


--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm



Simon wrote:
Quote:
Hi,

New to AD, and currently working my way through 70-290 (which is going ok)

Anyway, having trouble creating multiple objects (users, computers) with the
DSADD command line tool. I can create a single instance of each fine, but
fail with attempts to create more than one object at a time. Here's my syntax:

dsadd computer "CN=PC1,OU=Computers,DC=Contoso,DC=com"
"CN=PC2,OU=COmputers,DC=Contoso,DC=com"

I get the following error message:

dsadd failed: 'CN=PC2,OU=Computers,DC=Contoso,DC=com' is an unknown parameter.

I'm obviously entering the wrong syntax somewhere, but according to the
MSPress book I have for 70-290 you can add multiple objects at a time by
entering the DN and putting a space between each object (which I have done
surely?)

Can someone please point out where I am going wrong with this command please?

Many thanks,

Simon
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> microsoft.public.windows.server.active_directory All times are GMT
Page 1 of 1

 

Copyright © 2002-2006 Web-S-Sense Pty. Ltd. All rights reserved.

Powered by phpBB
Advertising | Policies/Disclaimers | Contact us | Link to us


Featured Sites: Free Antivirus and Antispyware Info | Free PC Support | MCSE Directory