Add UPN in Active Directory with PowerShell
The following steps will add an alternative UPN suffix in AD with PowerShell.
Run PowerShell as administrator. Get a list of the UPN suffixes.
It’s not showing any UPN suffixes, this means that it’s empty. We are going to use the Set-ADforest cmdlet to add the UPN suffix. Let’s add the UPN suffix osdoors.com.
|
[PS] C:\>Get–ADForest | Set–ADForest –UPNSuffixes @{add=“osdoors.com”}
|
Confirm that the UPN suffix is added successfully.
|
[PS] C:\>Get–ADForest | Format–List UPNSuffixes
UPNSuffixes : {osdoors.com}
|