Solved

DSADD Failed

Posted on 2014-09-04
8
816 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will review the basic installation and configuration for Windows Software Update Services (WSUS) in a Windows 2012 R2 environment.  WSUS is a Microsoft tool that allows administrators to manage and control updates to be approved and ins…
OfficeMate Freezes on login or does not load after login credentials are input.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
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…

628 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