In a development environment I want to modify the 'password last set' date of my AD accounts so they won't begin to expire during development phase, but as soon as the environment becomes a production environment.
How can I change that date?
In a development environment I want to modify the 'password last set' date of my AD accounts so they won't begin to expire during development phase, but as soon as the environment becomes a production environment.
How can I change that date?
You cannot set it to an arbitrary value, but you can set it to the current date via the following steps:
Get the account:
Set the value to 0:
Set the value to -1:
After that, the account behaves as if the password has just been changed.
Semicolon contributed through the comments, that you can also achieve the above through:
FYI, you can apply the same logic to local accounts: