Export Office 365 Users’ Last Password Change Date to CSV
Office 365 users’ last password change date can be retrieved from the LastPasswordChangeTimeStamp attribute. Using PowerShell, we can quickly get this attribute from Get-MsolUser cmdlet. You can use below PowerShell code to export password last change date to CSV.
1 |
Get-MsolUser -All | select DisplayName,LastPasswordChangeTimeStamp | Export-CSV LastPasswordChangeDate.csv -NoTypeInformation |
Note: Since Get-AzureADUser doesn’t support last […]