Articles

Technical Reference: How to set Office 365 passwords to never expire

Windows 8 needs a newer version of the sign-on assistant.

 

1.       Install Microsoft Online Services Sign-In Assistant for IT Professionals BETA

http://www.microsoft.com/en-us/download/confirmation.aspx?id=39267

(reboot required)

2.       Install Windows Azure Active Directory Module for Windows PowerShell (64-bit version)

http://go.microsoft.com/fwlink/p/?linkid=236297

3.       Paste these commands into the PowerShell window:

Import-Module msonline
$cred = Get-Credential
Connect-MsolService -cred $cred
Get-Command –Module msonline


(You will get a pop-up to supply Office 365 user credentials with Admin rights for the account)

4.       Run this command to set all users to not have passwords expire:

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

 

That’s it!

 

To check All users current settings:

Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires

To check a specific user setting:

Get-MSOLUser -UserPrincipalName <Microsoft Online Services ID> | Select PasswordNeverExpires

Example: Get-MSOLUser -UserPrincipalName myuser@mydomain.com | Select PasswordNeverExpires

 

Reference Pages:

http://blogs.technet.com/b/hot/archive/2011/11/29/how-to-configure-user-passwords-to-never-expire-in-office-365.aspx

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/46a38822-28a4-4abb-b747-96f7db2a2676/cannot-install-azure-active-directory-module-for-windows-powershell-mossia-is-not-installed

http://technet.microsoft.com/en-us/library/jj151815.aspx#bkmk_installmodule

 

Viewed: 13387 as of 08/18/2017

<< Back to Articles