I can't reset an expired password because it is expired. What's next?
If you yourself are the domain administrator, follow this articles suggestion.
net user loginname newpassword /DOMAIN /Active:Yes
or there is a powershell version
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
Related videos on Youtube
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 Consultancy Services. Today, I'm a happy member of Finaxys. I mostly work with Linux, Python, and Node.js, as well as the Microsoft 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 development-related discussions. If you live in Paris or want to visit Paris, you're very welcome to contact me too.
Updated on September 18, 2022Comments
-
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 over 10 yearsUpdate your question with that information. The solution to this problem can only be solved by having AD Administrator level access.
-
rtf over 10 yearsSounds 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 almost 10 yearsDoes resetting the password fix this permanently? I have the same issue and resetting fixes but the same issue occurs when the password next expires.