Hello,
You can use the following command with PowerShell:
Get-MsolUser -All | Select DisplayName,UserPrincipalName,LastPasswordChangeTimeStamp
See MSOnline Module for more information:
https://learn.microsoft.com/en-us/powershell/module/msonline/?view=azureadps-1.0
To connect to MSOnline, you will first need to run the command:
If you need to export to CSV:
Get-MsolUser -All | Select DisplayName,UserPrincipalName,LastPasswordChangeTimeStamp | Export-Csv -Path .\Path\filename.csv
If this is helpful please accept answer.