How to View an AD Object's Canonical Name

How to View an AD Object’s Canonical Name Leave a comment

Learn to view and edit an Lively Listing object’s Canonical Identify with the choices described on this information.

Choice 1: View Canonical Identify From ADUC

1. Open Lively Listing Customers and Computer systems, click on View and choose Superior Options.

  1. After that, navigate the AD container, the place the item is positioned, right-click the item and choose Properties.
  1. Then, click on the Object tab – the Canonical Identify is displayed on this tab.

Choice 2: View Canonical Identify with PowerShell

  1. Open PowerShell on a pc that has entry to a Area Controller.
  2. Then, get the item’s distinguishedName by working the command under. The command saves the end result within the $distinguishedName variable.
$distinguishedName = (Get-ADObject -Filter {Identify -eq 'Anthony Raj'}).DistinguishedName

Within the above command, ‘Anthony Raj’ is the AD Show Identify of the item I wish to get its CN. Right here is the results of the command. To verify that it labored, 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. Lastly, show the objects Canonical Identify by working this command:
Get-ADObject -filter {distinguishedname -eq $distinguishedName} -properties canonicalName

The command displayed different properties. To show simply the CN, modify the command as proven under.

(Get-ADObject -filter {distinguishedname -eq $distinguishedName} -properties canonicalName).CanonicalName

Conclusion

An AD object’s canonicalName shows the item within the canonical format. This exhibits the total path of the item in AD, separated by a ahead slash (/).

If it is advisable view this property in Lively Listing, you should utilize ADUC or PowerShell as I’ve proven on this fast information.

If this information met your expectations, let me know by responding Sure to the “Was this web page useful?” under. Earlier than you go, browse our Windows Server How-to Guides for extra guides.

Leave a Reply