Baixar e instalar o Microsoft Online Services Sign-in Assistant e Install Windows Azure AD
For single user
Connect to Windows PowerShell using Admin credentials
Connect-MsolService
Set-MsolUser -UserPrincipalName <user ID> -PasswordNeverExpires $true
For all users
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true
How to check whether the password is set to never expire
For single user
Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires
For all users
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires
Créditos: https://dilshansaminda.wordpress.com/2014/08/05/office365-setup-user-password-to-never-expire/
Deixe um comentário