Set passwords that do not expire - x360Cloud

Written By Tami Sutcliffe (Super Administrator)

Updated at July 27th, 2021

Many organizations have password expiration policies. If the Microsoft 365 password of the credentialed x360Cloud administrator expires, x360Cloud backups cannot take place. So it may be beneficial to set the password not to expire. 

NOTE: Only user account passwords that aren’t synchronized through directory synchronization can be set to never expire.

NOTE: Make sure that Azure AD is installed prior to performing this password task https://technet.microsoft.com/en-us/library/jj151815.aspx.

Follow these steps to set a non-expiring password.

If you want to…   Connect to Windows PowerShell
...then run this cmdlet   Connect-MsolService
using   your company admin credentials
     
If you want to…   Determine if a user’s password is set to never expire
...then run this cmdlet   Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires
using   the user’s ID
or    the user principal name* (UPN)
     
If you want to…   Set a user password to never expire
...then run this cmdlet   Set-MsolUser -UserPrincipalName <user ID> -PasswordNeverExpires $true
using   the User Principal Name* (UPN) 
or   the user’s ID

 *For example, april@contoso.onmicrosoft.com

 

Additional resource: [Microsoft] Set an individual user's password to never expire

https://support.office.com/en-us/article/Set-an-individual-user-s-password-to-never-expire-f493e3af-e1d8-4668-9211-230c245a0466