This isn’t something we’d recommend for normal operations.
However, using Office 365 with external applications isn’t great when it comes to dealing with password resets. In many cases, the first thing a user knows is that their email no longer connects, as the countdown warnings on a regular domain account don’t necessarily apply.
With this in mind, it may be beneficial to set users’ Office 365 accounts to have their passwords never expire automatically. In this way, you can give people fair warning of when they’ll need to change their passwords and let them know what they need to do.
So the basic process is: Prepare your administrative login to MSOnline, Connect, Change the relevant attribute for your user.
- Launch the Powershell
- Ensure the scripts are permitted to run:
- set-executionpolicy remotesigned
- Supply your Office 365 administrative login:
- Connect to the Office 365 administrative service:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $cred -Authentication Basic -AllowRedirection
- Change the user account to have the privilege (replace the bold, italic part)
- set-msoluser -userprincipalname firstname.lastname@example.org -passwordneverexpires $true
- The account should no longer demand password resets.
If you use this policy, you should arrange frequent, manual resets with your service users.