Office 365

Office 365 | Configure Permanent Passwords

| | Leave a comment

Office 365 doesn’t allow you to set passwords that do not expire through the GUI – the maximum you can configure here is 730 days. However, if you would like to set passwords to not expire, you can do so via PowerShell:


To set passwords for an individual 365 user to never expire:

Import-Module msonline

$cred = Get-Credential

Connect-MsolService -cred $cred

Get-MsolUser | Where { $_.PasswordNeverExpires –ne $true } | Format-Table DisplayName, PasswordNeverExpires, UserPrincipalName

[the above command shows all the user accounts with passwords set to expire]

Set-MsolUser –UserPrincipalName [UPN name, usually the main email address of the target user] –PasswordNeverExpires $true

Continue reading >>