Using PowerShell to change the UPN Suffix

For decades, it’s been a best practice to configure your corporate domain with a non-internet-rotatable .local domain (e.g. example.local instead of example.com). But in the modern everything-is-connected-to-the-internet age, this appears to be falling out of fashion. When “Preparing to provision users through directory synchronization to Office 365,” you’ll eventually realize that you’ll need to follow …