CanonicalName

Gets the Active Directory canonical name of the computer object.

Syntax

string CanonicalName {get;}

Property value

The canonical name of the computer object.

Example

The following code sample illustrates using CanonicalName for a computer object in a script:

...  
set objZone = cims.GetZoneByPath("LDAP://CN=research,
CN=zones,CN=centrify,CN=program data,DC=sierra,DC=com")  
'Identify the computer account  
Set objComp = cims.GetComputerByPath("LDAP://CN=solaris10-dev,
CN=computers,DC=sierra,DC=com”)   
wScript.Echo “Canonical name: “ & objComp.CanonicalName
...