In this article I’ll show you how set my Office 365 Administrator password to never expire.
The reason I’m doing this Is because I’m running many scripts that auto connect to Office 365 and generate reports.
First connect to Office 365 using:
To set the password to never expire run:
Set-MsolUser -UserPrincipalName [email protected] -PasswordNeverExpires $true
To check If it’s working use:
Get-MSOLUser -UserPrincipalName [email protected] | Select PasswordNeverExpires | ft -AutoSize