Office 365 Password Never Expires

Microsoft Online Service Portal (MOSP) doesn’t allow you to set passwords to never expires, but for some customers it is wanted and for some service accounts not beeing federated its also wanted.

Connect to Micorosoft Online Services.

$LiveCred = Get-Credential
Connect-MsolService -Credentials $LiveCred
Get-MsolUser BillieJean | Set-MsolUser -PasswordNeverExpires $true/$false

Leave a Reply


I am Roy Apalnes, a Microsoft Cloud Evangelist working av Sopra Steria. Main focus in Microsoft Security and Endpoint Management, with a bigger picture in mind.

Featured Posts