Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check when password was last changed

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?

like image 944
KlimczakM Avatar asked Aug 02 '12 15:08

KlimczakM


People also ask

How can I tell when my last password was changed?

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.

How do I view password history in Windows 10?

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.

How can I see my last passwords?

You can use powershell command Get-MsolUser from Azure AD v1 module to get PwdLastSet value.

How do you check who changed the password for a user in Linux?

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.


1 Answers

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"
like image 171
Adi Avatar answered Sep 30 '22 18:09

Adi