How do I check when the password was last changed for some user? I would like to do it both on Windows and Linux, can you guide me a little how can I do that?
Use the Net User command to display the date and time you last set your Windows 10 user account password. Check the Password last set output of the net user %username% command.
Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy\Enforce password history. Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy\Minimum password age.
You can use powershell command Get-MsolUser from Azure AD v1 module to get PwdLastSet value.
You need to use the chage command. It can display password expiry information as well as changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her password.
In Linux:
chage -l {username}
In Windows:
net user {username} | find /I "Password last set"
In Windows (user part of a domain):
net user {username} /DOMAIN | find /I "Password last set"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With