Step by Step Directions for Techs
Set Office365 Password To Not Expire
March 27, 2017Posted by on
I know there have to be thousands of these articles, but I can never find the information when I need it. So here it is:
Get-MSOLUser -UserPrincipalName | Select PasswordNeverExpires
You need a couple things (from https://technet.microsoft.com/library/dn975125.aspx):
These steps are required once on your computer, not every time you connect. However, you’ll likely need to install newer versions of the software periodically.
1. Install the 64-bit version of the Microsoft Online Services Sign-in Assistant: Microsoft Online Services Sign-in Assistant for IT Professionals RTW.
2.Install the 64-bit version of the Windows Azure Active Directory Module for Windows PowerShell: Windows Azure Active Directory Module for Windows PowerShell (64-bit version).