Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Learn how to view and edit an Active Directory object’s Canonical Name with the options described in this guide.

Option 1: View Canonical Name From ADUC

1. Open Active Directory Users and Computers, click View and select Advanced Features.

Open-Active-Directory-Users-and-Computers-click-View-and-select-Advanced-Features
  1. After that, navigate the AD container, where the object is located, right-click the object and select Properties.
  1. Then, click the Object tab – the Canonical Name is displayed on this tab.

Option 2: View Canonical Name with PowerShell

  1. Open PowerShell on a computer that has access to a Domain Controller.
  2. Then, get the object’s distinguishedName by running the command below. The command saves the result in the $distinguishedName variable.
$distinguishedName = (Get-ADObject -Filter {Name -eq 'Anthony Raj'}).DistinguishedName
In the above command, ‘Anthony Raj’ is the AD Display Name of the object I want to get its CN. Here is the result of the command. To confirm that it worked, I executed the variable.
Then, get the object's distinguishedName by running the command below. The command saves the result in the $distinguishedName variable.
  1. Finally, display the objects Canonical Name by running this command:
Get-ADObject -filter {distinguishedname -eq $distinguishedName} -properties canonicalName

The command displayed other properties. To display just the CN, modify the command as shown below.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
(Get-ADObject -filter {distinguishedname -eq $distinguishedName} -properties canonicalName).CanonicalName
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Conclusion

An AD object’s canonicalName displays the object in the canonical format. This shows the full path of the object in AD, separated by a forward slash (/).

If you need to view this property in Active Directory, you can use ADUC or PowerShell as I have shown in this quick guide.

If this guide met your expectations, let me know by responding Yes to the “Was this page helpful?” below. Before you go, browse our Windows Server How-to Guides for more guides.

Rank #2
Active Directory Cookbook
  • Used Book in Good Condition