Name

Gets the computer name of the computer object.

Syntax

string Name {get;}

Property value

The computer name of the computer object.

Example

The following code sample illustrates using Name 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=magnolia, CN=computers,DC=sierra,DC=com”) 
'Display the computer account name
wScript.Echo “Computer name: “ & objComp.Name
...