Solved

DSADD Failed

Posted on 2014-09-04
8
707 Views
Last Modified: 2014-09-04
I'm trying to make a few users using the DSADD command the following below is what my command is:

dsadd user "cn=TestUser01,ou=Trainer1 Users,ou=Trainer1,ou=Trainer,dc=TrainingDC,dc=com" -upn TestUser01@TrainingDC.com-display TestUser01 -pwd P@$$w0rd -mustchpwd yes-hmdir \\trainingdc\home\TestUser01 -hmdrv H:-profile \\trainingdc\profiles\TestUser01 -memberof "cn=TestUsers,ou=Trainer1 Users,ou=Trainer1,ou=Trainer,dc=TrainingDC,dc=com"

However when I hit enter I get the following error:

D:\>dsadd user "cn=TestUser01,ou=Trainer1 Users,ou=Trainer1,ou=Trainer,dc=TrainingDC,dc=com" -upn TestUser01@TrainingDC.com-display TestUser01 -pwd P@$$w0rd -mustchpwd yes-hmdir \\trainingdc\home\TestUser01 -hmdrv H:-profile \\trainingdc\profiles\TestUser01 -memberof "cn=TestUsers,ou=Trainer1 Users,ou=Trainer1,ou=Trainer,dc=TrainingDC,dc=com"
dsadd failed: 'TestUser01' is an unknown parameter
type dsadd /? for help

I'm learning about DSADD so it wouldn't surprise me if I'm missing something that I just overlooked.
0
Comment
Question by:jjmekkattil
  • 6
  • 2
8 Comments
 
LVL 13

Expert Comment

by:Gabriel Clifton
ID: 40304352
It might just be the way everything is displayed here or a copy paste error but you need a space here
-upn TestUser01@TrainingDC.com-display
to
-upn TestUser01@TrainingDC.com -display
0
 

Author Comment

by:jjmekkattil
ID: 40304355
I did notice that I was missing a space between @TrainingDC.com and -display so I went ahead and fixed that but now I am getting the following error:

dsadd failed:The parameter is incorrect
0
 
LVL 13

Expert Comment

by:Gabriel Clifton
ID: 40304382
I do not see a samid, not really needed because it can get it from cn. Here is a sample of a dsadd I use, maybe this will help.

dsadd user "cn=%First% %Last%,ou=%SCampus%,ou=student,DC=domain,DC=com" -samid %loginid% -pwd "%Pass%" -upn %loginid%@domain.com -fn "%First%" -ln "%Last%" -display "%First% %Last%" -memberof "cn=%StudentCN%,ou=Groups,DC=domain,DC=com" "CN=Students,OU=Groups,DC=domain,DC=com" -disabled no -canchpwd no -pwdneverexpires yes -desc "%StudentDesc%"
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 13

Expert Comment

by:Gabriel Clifton
ID: 40304389
space before -hmdir
still looking through your command
0
 
LVL 13

Expert Comment

by:Gabriel Clifton
ID: 40304393
and space between H:-profile
0
 
LVL 13

Accepted Solution

by:
Gabriel Clifton earned 500 total points
ID: 40304403
dsadd user "cn=TestUser01,ou=Trainer1 Users,ou=Trainer1,ou=Trainer,dc=TrainingDC,dc=com" -upn TestUser01@TrainingDC.com -display TestUser01 -pwd P@$$w0rd -mustchpwd yes -hmdir \\trainingdc\home\TestUser01 -hmdrv H: -profile \\trainingdc\profiles\TestUser01 -memberof "cn=TestUsers,ou=Trainer1 Users,ou=Trainer1,ou=Trainer,dc=TrainingDC,dc=com"

Open in new window

0
 

Author Comment

by:jjmekkattil
ID: 40304436
Stupid spaces!!!  It worked thanks!
0
 
LVL 13

Expert Comment

by:Gabriel Clifton
ID: 40304444
No problem, sometimes it is the second pair of eyes that makes all of the difference.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question