GetComputerByDN

Returns the computer profile for a computer in the zone using the distinguished name (DN) of the profile.

Syntax

IComputer GetComputerByDN(string dn)

Parameter

Specify the following parameter when using this method:

Parameter Description
dn The distinguished name (DN) of the computer profile.

Return value

The computer profile with the distinguished name (DN) matching the distinguished name specified, or null if no matching computer profile is found.

Discussion

The computer profile is the service connection point associated with the computer object.

Example

The following code sample illustrates using this method in a script:

...  
'Specify the zone you want to work with  
set objZone =
cims.GetZoneByPath("LDAP://CN=default,CN=zones,CN=centrify,CN=program
data,DC=arcade,DC=com")  
'Get the computer profile by DN  
set objComputer=
objZone.GetComputerByDN(“CN=velvet,CN=Computers,CN=default,CN=Zones,  
CN=centrify,CN=program data,DC=arcade,DC=com")  
wScript.Echo computer.Name  
...