Rootctl

Windows

List
PowerShell





UPN



UPN SUFFIX IN ACTIVE DIRECTORY?


---------------HOW TO ADD UPN SUFFIX IN ACTIVE DIRECTORY?--------------------



What do you need to know about the UserPrincipalName attribute?
 UPN is an Internet-style user login name (identifier) based on Internet standard RFC 822;
 The value of the UserPrincipalName attribute may match (but does not have to) the email of the user;
 The values of the UserPrincipalName attribute must be unique among all of the security principal objects in the directory forest;
 The maximum size of the UserPrincipalName is 256 characters;
 The UserPrincipalName attribute is optional, unlike samAccountName.

Get the current UserPrincipalName of the user:

Get-ADUser j.brion | Select-Object UserPrincipalName
Set up a new UserPrincipalName for the user:

Get-ADUser j.brion| Set-ADUser -UserPrincipalName j.brion@theitbros.com

You can list available UPN suffixes in a domain using PowerShell:

Get-ADForest | Format-List Domains,UPNSuffixes


There is a another way to find the LDAP DN using the Dsquery command

Dsquery OU –name “OU Name”

DSquery group –samid “Group Name”

Dsquery user –name “User Name”

DSquery Computer –name “Computer Name”

dsquery subnet -name “Subnet”

dsquery site -name “Site Name”

https://theitbros.com/samaccountname-and-userprincipalname/  



.