DSMOD command to reset a users password failing "dsmod failed:The logon attempt failed"

I'm trying to run a command to reset a users password from command line on our domain controller but having issues. I know i had this command work before but i am now getting the error message "dsmod failed:The logon attempt failed".  Below is the command I'm using with pertinent information taken out. I know i have seen this work and i have to do this for over 200 users which is why i want the command to work. Tried to Google it but I'm only getting results from users with DSADD commands. I am logged into the domain controller as the domain administrator as well.

Here is the command i am using:
dsmod user "cn=XXXXX,ou=XXXXX,ou=XXXXX,dc=XXXXX,dc=LOCAL" -password Password2015 -mustchpwd no

Any help is appreciated thanks.
Who is Participating?
Will SzymkowskiSenior Solution ArchitectCommented:
Not sure why you would want to use DSMOD I would rather use powershell for this but I illustrated a test in my lab to show you the syntax.

Syntax i used in the screenshot
dsmod user "CN=Mike,OU=OU1,DC=example,DC=com" -pwd TESTing!@# -mustchpwd no

Open in new window


MB_IT_SupportAuthor Commented:
Thanks Will i just noticed the -password and not -pwd. Re-ran the command with that change and it worked.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.