Step 1: Download Powershell
Step 2: Login to your Account
Type: Connect-MsolService
This will bring up this window:
If you are changing the password for just yourself, enter your Microsoft 365 Email Address for the User Name and your Microsoft 365 Password for the Password. If you want to change multiple Users
Step 3: Type the Following Code
Set-MsolUser –UserPrincipalName billgates@microsoft.com
-PasswordNeverExpires Ttrue
If you don’t get an error message, it worked.
Comments