PasswordLastChanged or PwdLastSet

Senior Member

I'm trying to get the fields PasswordLastChanged or PwdLastSet so i can notify my users when they have to change their password but i dont know how to get that fields

3 Replies



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


Get-MsolUser -All | Select DisplayName,UserPrincipalName,LastPasswordChangeTimeStamp

The LastPasswordChangeTimeStamp field is still not supported in latest Azure AD v2 module (Get-AzureADUser) and its base service Graph Api.


You can refer below post for more info.



I found below script. This might help you.


This script allows you to generate 7 different password reports.
- Pwd Last Change Date Report
- Pwd Expiry Date Report
- Pwd Expired Users Report
- Pwd Never Expires Users Report
- Soon-to-Expire Pwd Users Report
- Recently Pwd Changed Users Report
- Password Report for Licensed Users

In Case of an Azure AD User, if you'd like to find the Last Password Change Date-Time stamp, you can use the below PS cmdlet:

$user=Get-MsolUser -UserPrincipalName Email address removed