I have 1275 UPN Suffix in the AD. This is the maximum allowed in Windows Server 2012.
$domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain();
$domaindn = ($domain.GetDirectoryEntry()).distinguishedName;
$upnDN = "cn=partitions,cn=configuration,$domaindn";
When I create a user using ADAC interface I cannot select an UPN with an UPN Suffix that is not listed in the ADDT UPN Suffixes.
I can however create an user using PowerShell with any UPN Suffix.
$userDN = "cn=Users,$domaindn";
$userLogin = "user@foobar.com";
New-ADUser -AccountPassword (Read-Host -AsSecureString "Insert $userLogin Account Password") -DisplayName "" -EmailAddress $userLogin -Enabled $true -Name $userLogin -Path $userDN -PasswordNeverExpires $true -SAMAccountName $userLogin -UserPrincipalName $userLogin
This does not add the UPN Suffix as AD trusted. As far as I have tested, the user works fine.
- What are the ill effects that might come from having a user created with an UPN which UPN Suffix is not listed in the AD Trusted UPN Suffix list?