

#Exchange office 365 password reset license
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. To ease your work, we have developed a PowerShell script that will solve all your password related queries. You need to calculate the user’s Password expiry date by comparing user’s domain-password-policy. Since each domain (a tenant can have multiple domains) can have a different password policy, getting Office 365 users’ password expiry date is tricky. 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.
