Avatar of MB_IT
MB_IT
Flag for United States of America asked on

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.
Active DirectoryWindows Server 2008

Avatar of undefined
Last Comment
MB_IT

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Will Szymkowski

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
MB_IT

ASKER
Thanks Will i just noticed the -password and not -pwd. Re-ran the command with that change and it worked.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck