This command:

dsadd user "cn=testing dummy2,cn=Users,dc=domain,dc=local" -display "testing dummy2" -samid testing.dummy2@domain.local -pwd password76 -fn testing -ln dummy2 -disabled no -upn testing.dummy2@domain.local -desc testing -acctexpires 61 -mustchpwd yes

is returning this:

The name provided is not a properly formed account name. type dsadd /? for help

Is there something I am missing?


You appear to be passing a UPN to the SAMAccountName property with the -samid switch. Get rid of the @ and everything after it for that switch.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.