Extend expired AD password
![](https://www.mwtech.se/wp-content/uploads/2021/09/articlebanner-en.png)
Sometimes when a users password has expired it can be tricky to reset it if they are currently on a VPN connection for example. Here is a way to extend the current password in Active Directory for a user for another 90 days, or whatever is the password policy in your domain.
Solution
Write these two commands in a Power Shell window, replacing ”username” with the AD account name:
Set-ADUser -Identity username -Replace @{pwdlastset="0"}
Set-ADUser -Identity username -Replace @{pwdlastset="-1"}