Secrets from the Field – Windows PowerShell Part 4 – List of when Users Password Changed

SecretsfromtheField WindowsPowerShellPart ListofwhenUsersPasswordChanged

Generate a list of when users last changed their passwords in Office 365

From time to time you may need to confirm when a or all users last changed their Office 365 passwords. You can generate a list with this information through the following scenarios.

For a single user:
Get-MsolUser -UserPrincipalName | select DisplayName, LastPasswordChangeTimeStamp

For all users:
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp

You can export this information to a CSV file for use within Microsoft Excel using this cmdlet:
Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp | Export-CSV PasswordChange.csv -NoTypeInformation

About Larry Taylor

Innovative helps you balance your business requirements, service levels, staff and infrastructure to make your IT as effective as possible. Larry Taylor is a Senior Solutions Consultant at Innovative with a focus on Microsoft technologies. Since 2002, Larry has been recommending, deploying, and providing support for organizations to align technology solutions with their business needs.

Leave a Reply

Innovative Integration can help you optimize your IT infrastructure. Request a Consultation