Adding a new alternative UPN with PowerShell

Some time you need to add new UPN’s in AD to do this you can use the GUI Active Directory Domains and Trusts but if you want to automate things you canĀ  use this PowerShell one liner:

Get-ADForest | Set-ADForest -UPNSuffixes @{add=”pinkdolphinterritory.com”}