Link to home
Start Free TrialLog in
Avatar of rob-
rob-

asked on

dsadd user help

In Windows 2008, logged on with the admin account, I run:

dsadd user "CN=Example User,OU=Users,OU=SomeLocation,OU=MyBusiness,DC=PJ,DC=local" -fn Example -ln User -display "Example User" -company "Example Company" -dept Department1 -email bb@example.co.uk -pwdneverexpires yes -u bb -p 4edXed23

and get the error:

dsadd failed:The logon attempt failed

I can't find much help with this error on Google.

Any help? I Have also tried running the code in a command prompt 'opened as administrator'.
The OU's are set up okay, I created a user object then used dsquery to get it's CN path which matched the example okay.

Thanks
Rob
ASKER CERTIFIED SOLUTION
Avatar of Joseph Daly
Joseph Daly
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rob-
rob-

ASKER

Thanks :) I'm an idiot... I was using the -u and -p instead of -samid and -pwd ...