Set-MsOlUser -UserPrincipalName UserID -PasswordNeverExpires $ True
$ cred = Get-Credential [/ size] connect-MSOLService -credential $ cred [/ size] Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $ true
Most popular questions within the last 30 days