

With AzureAD installed, run this cmdlet and sign in using the administrator username and password.
#Office 365 email only account install#
If you don't yet have the AzureAd cmdlets installed, open PowerShell using Run as Administrator and use this to install them: To change the passwords to expire, run the cmdlet above but use $false instead of $true. Set-MsolUser -UserPrincipalName alias -PasswordNeverExpires $true To change a single user, use the following command, replacing alias with the user's alias. Get-MSOLUser | Set-MSOLUser –PasswordNeverExpires $true Use this cmdlet to set all user's passwords to never expire. Get-MSOLUser -UserPrincipalName alias | Select PasswordNeverExpires To check the PasswordNeverExpires for just one user, use this cmdlet, replacing alias with the user's alias.

Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires To list all users and see if their password expires, use this cmdlet: To connect to it, use this cmdlet, entering your administrator username and password when asked. If you don't have MSOline module installed, open PowerShell using Run as Administrator and use this to install:

You can use either the AzureAD or MSOnline module to check password settings. If the password is set to expire, you can change the password age or the length of notification. Click Edit if you need to change any of the settings. Log into the Office 365 Admin center, expand the Settings menu, select Security & privacy.
