
- #PASSWORD RESET OFFICE 365 HOW TO#
- #PASSWORD RESET OFFICE 365 PASSWORD#
To list all Office 365 users and their date of last password change date, download the above script and execute as follows.
#PASSWORD RESET OFFICE 365 HOW TO#
How to Export Office 365 Users Password Last Change Date Report
The output of the password expiry report contains the most essential attributes like Display Name, User Principal Name, Password last Change Date, Password Since Last Set (Password Age), Password Expiry Date, Friendly Expiry Time, License Status and Days Since Expiry/Days to Expiry.
I.e., Credential can be passed as a parameter instead of saving inside the script.ĭownload Script: PasswordExpiryReport.ps1
You can filter result to display Licensed users alone. The script can be executed with MFA enabled accounts too. A single script allows you to generate 7 different password reports. A single script can generate seven different password reports. Since each domain (a tenant can have multiple domains) can have a different password policy, getting Office 365 users’ password expiry date is tricky. But, getting a password expiry date is a bit difficult. To ease your work, we have developed a PowerShell script that will solve all your password related queries. Note: Since Get-AzureADUser doesn’t support last Password change attribute, we need to use Get-MsolUser cmdlet to get Azure AD users’ last password set date. You need to calculate the user’s Password expiry date by comparing user’s domain-password-policy. Note : Since Get- AzureADUser doesn’t support last Password change attribute, we need to use Get-MsolUser cmdlet to get Azure AD users’ last password set date.īut, getting a password expiry date is a bit difficult. Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp | Export-CSV LastPasswordChangeDate.