Skip to content

Set UPN Suffix using PowerShell

To Prepare for Office 365 Migration you need to add the missing ‘UPN Suffixes’.

The following example demonstrates how to create a new UPN suffix for the users in the ThatLazyAdmin forest:

Lets Start by running:


Then run :


Lets verify the new UPN in Active Directory Users and Computers


There you go.



For a full explanation of the parameters that you can pass to Set-ADForest, at the Active Directory module command prompt, type Get-Help Set-ADForest –detailed, and then press ENTER.

Sharing is caring!

Published inActive DirectoryExchange OnlineExchange ServerOffice 365PowerShellWindowsWindows Server 2008Windows Server 2012

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *