Click to See Complete Forum and Search --> : Active directory Command line Issues


jonno112
07-25-2004, 10:38 PM
I am currently doing a course on server 2003 and right from the word go i have had issues with active directory command lines eg DSADD DSGET

Well i have had it, below is what i tried to do today and it came up with another error.

The error was;

DSADD failed: 'Rep' is an unknown parameter.

I followed what the lesson plan told me to do but none of them work.

Here is what i typed into scriptcomputer.bat file;

DSADD COMPUTER ?CN=EB-2849,OU=EastBranch,DC=Contoso,DC=COM? -desc ?Sales Rep Computer? -loc ?East Branch Office?
DSADD COMPUTER ?CN=EB-2850,OU=EastBranch,DC=Contoso,DC=COM? -desc ?Sales Rep Computer? -loc ?East Branch Office?
DSADD COMPUTER ?CN=EB-3748,OU=EastBranch,DC=Contoso,DC=COM? -desc ?Sales Rep Computer? -loc ?West Branch Office?


The idea was to add 20 computers to active directory using the DSADD command 10 to the west and 10 to the east.

Please help this is really annoying.

All i want is 1 script to work

Thanks jonno

gunderstone
07-29-2004, 11:36 AM
I think the issue here is Sales Rep Computer - the script is thinking that REP is a parameter is needs to run and it doesn't know what that is.

Try encompassing your information in quotation marks to see if the issue goes away

jonno112
07-31-2004, 06:12 PM
Thanks for your reply,

I did what you said and removed the ? marks and replaced them with quotes -desc.

I ran the script again this time there was an issue with -loc so i put the quotes around them.....

DSADD COMPUTER "CN=EB-2849,OU=EastBranch,DC=Contoso,DC=COM" -desc "Sales Rep Computer" -loc "East Branch Office"

Now the first entry looks like the above, i ran this and the error "Directory Object not found.

I thought this was meant to create the directory of course it's not in there.

Any thoughts

Thanks jonno

logmaster.log
06-06-2007, 04:10 PM
Spell out representive and you will not get the error