|
|
FAQ
Search
Memberlist
Usergroups
Register
Profile
Private messages
Log in
|
|
| Author |
Message |
Simon Guest
|
Posted: Wed May 17, 2006 1:24 pm Post subject: DSADD - Multiple object creation |
|
|
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
|
Posted: Wed May 17, 2006 4:37 pm Post subject: RE: DSADD - Multiple object creation |
|
|
"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
|
Posted: Thu May 18, 2006 4:40 am Post subject: Re: DSADD - Multiple object creation |
|
|
:)
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 |
|
 |
|
|