Skip to content

Useful PowerShell Script: Change Active Directory UPN Suffix

The following script can be run as a scheduled task to ensure that your User Principal Name (UPN) suffixes are always set to a certain value. This is especially useful for Office 365 deployments with directory sync enabled if the tenant is using a non-public top level domain for Active Directory (example: domain.local). Make sure you change the first three variables to match your environment. You can set the $ou parameter to only affect a certain OU (an its sub-OUs…

Continue reading Useful PowerShell Script: Change Active Directory UPN Suffix