Skip to content

Set a specific Office 365 account password to not expire

Published: at 07:19 AM

Lately, I’ve been doing a few Office 365 migrations. I’ve run into a snag with a couple of service accounts and making sure their passwords do not expire.

Within the Office 365 portal, you can make global changes but you cannot specify one account. To set one account’s password to not expire you’ll need to use PowerShell.

Below are the commands you need to run-


Set-AzureADUser -ObjectId <user id> -PasswordPolicies DisablePasswordExpiration