• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1872
  • Last Modified:

Proper Syntax for DSADD Command

Hi folks!

I am trying to add users to our Windows Server 2003-based Active Directory domain using the dsadd command. Unfortunately, even after looking through the documentation and knowledge base articles online, I am still apparently getting something wrong about the syntax.

Our domain name is a three-part name in the format "name1.name2.com". Here is the syntax I am using for the command:

dsadd user "CN=jdoe,CN=Users,DC=name1,DC=name2,DC=com" -fn "FirstName" -ln "LastName" -display "FullName" -pwd xxxxxx -memberof "CN=Students1" -hmdir \\server\home$\$username$ -hmdrv U: -profile \\server\profiles$\$username$ -mustchpwd yes -disabled no

When I execute that command, I receive the following error:

dsadd failed:CN=jdoe,CN=Users,DC=name1,DC=name2,DC=com:Directory object not found.

Can someone tell me where I'm messing this up?

Thanks!

- Ithizar
0
Ithizar
Asked:
Ithizar
  • 3
  • 2
1 Solution
 
TechnicallyMaybeCommented:
It looks like it's with your -memberof switch as cn=students1 is not properly formatted.
0
 
TechnicallyMaybeCommented:
Try the command without the -memberof to see if it works please.
0
 
IthizarAuthor Commented:
No, even without the "memberof" argument, it still fails with the same error.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
TechnicallyMaybeCommented:
Try  changing "CN=jdoe,CN=Users,DC=name1,DC=name2,DC=com" to:

 "CN=jdoe, OU=Users, DC=name1, DC=name2, DC=com"
0
 
Adam BrownSr Solutions ArchitectCommented:
Is the domain you're adding the user in a child of another domain? Like random.company.com?
0
 
IthizarAuthor Commented:
Turns out it was a combination of a mistake in the name of the OU the user was going into -and- an error in the -memberof command. Thanks everyone!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now