Config all Users Password never expire

Xavier Mustin

Administrator
Staff member
#1
To connect to Auth Contect:
Code:
Connect-MsolService
If you want to change the setting for all the users in an organization, run the following command:
Code:
Command:Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true
To see all users and their “Password never expires setting”, you can run the following PowerShell command:
Code:
Command:Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires
 
Haut