August 4

How to set an Office365 user Password to never expire with PowerShell

Connect to Microsoft online

Connect-MsolService (enter your username and password if prompted)

2 Check Individual User Password Expiration status Get-MSOLUser -UserPrincipalName exampleuser@example.com | Select PasswordNeverExpires

3 Set Individual User Password to Never Expire
Set-MsolUser -UserPrincipalName exampleuser@example.com -PasswordNeverExpires $true


Posted August 4, 2022 by Ray in category "Azure

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.