I can't reset an expired password because it is expired. What's next?

7,054

If you yourself are the domain administrator, follow this articles suggestion.

http://community.spiceworks.com/how_to/show/1328-unlock-domain-users-or-reset-passwords-from-command-line

net user loginname newpassword /DOMAIN /Active:Yes

or there is a powershell version

http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/17/how-to-change-a-user-s-active-directory-password-with-powershell.aspx

Set-AdUserPwd.ps1

Function Set-AdUserPwd
{
Param(
[string]$user,
[string]$pwd
) #end param
$oUser = [adsi]"LDAP://$user"
$ouser.psbase.invoke("SetPassword",$pwd)
$ouser.psbase.CommitChanges()
} # end function Set-AdUserPwd
Set-AdUserPwd -user "cn=bob,ou=HSG_TestOU,dc=nwtraders,dc=com" -pwd P@ssword1
Share:
7,054

Related videos on Youtube

Vishal Jagtap
Author by

Vishal Jagtap

Developer, architect, project manager, tester, and active DevOps supporter, I'm studying, observing and advising companies which have an important risk to fail their IT-related projects. I specialize in quality and productivity. After six years of freelancing, I worked for several companies, including Tata Con­sul­tan­cy Ser­vices. Today, I'm a happy member of Finaxys. I most­ly work with Lin­ux, Python, and Node.js, as well as the Mi­crosoft stack. Outside information technology, I'm interested by photography. I'm mostly active on SE.SE, and also maintain my blog. If you want to contact me, my email is [email protected]. Feel free to drop me a note about any de­vel­op­ment-re­lat­ed dis­cus­sions. If you live in Paris or want to vis­it Paris, you're very wel­come to con­tact me too.

Updated on September 18, 2022

Comments

  • Vishal Jagtap
    Vishal Jagtap over 1 year

    The password of my corporate (Active Directory based) account expired this morning. When logging in, I see an error similar to:

    Your password has expired and must be changed.

    I'm then invited to enter a new password. Once my new, never used before password is submitted, I see a different error:

    The password of the account has expired.

    Searching for this error in Google, I only see people encountering this error in SQL Server or when authenticating programmatically.

    Is there anything I can do?

    • Ramhound
      Ramhound over 10 years
      Update your question with that information. The solution to this problem can only be solved by having AD Administrator level access.
    • rtf
      rtf over 10 years
      Sounds like an odd glitch. You should be able to reset your password after it's expired. Have someone with admin privileges manually reset your password.
  • oatsoda
    oatsoda almost 10 years
    Does resetting the password fix this permanently? I have the same issue and resetting fixes but the same issue occurs when the password next expires.