
Gets the name associated with the local computer.
ComputerNameGet( format )
(i) format: specifies what value to return. See below.
(s) computer name: returns computername in specified format. Returns an ANSI string in Windows 95/98/ME, and a Unicode string in Windows NT and newer.
In Windows 95/98/ME, "format" must be 0. In Windows NT and newer, "format" can be one of the following values:
| Value | Meaning | 
| 0 | The NetBIOS name of the local computer. | 
| 100 | The NetBIOS name of the local computer. If the local computer is a node in a cluster, returns the NetBIOS name of the cluster virtual server. | 
| 101 | The DNS host name of the local computer. If the local computer is a node in a cluster, returns the DNS host name of the cluster virtual server. | 
| 102 | The name of the DNS domain assigned to the local computer. If the local computer is a node in a cluster, returns the DNS domain name of the cluster virtual server. | 
| 103 | The fully qualified DNS name that uniquely identifies the local computer. This name is a combination of the DNS host name and the DNS domain name, using the form HostName.DomainName. If the local computer is a node in a cluster, returns the fully qualified DNS name of the cluster virtual server. | 
| 104 | The NetBIOS name of the local computer. If the local computer is a node in a cluster, returns the NetBIOS name of the local computer, not the name of the cluster virtual server. | 
| 105 | The DNS host name of the local computer. If the local computer is a node in a cluster, returns the DNS host name of the local computer, not the name of the cluster virtual server. | 
| 106 | The name of the DNS domain assigned to the local computer. If the local computer is a node in a cluster, returns the DNS domain name of the local computer, not the name of the cluster virtual server. | 
| 107 | The fully qualified DNS name that uniquely identifies the computer. If the local computer is a node in a cluster, returns the fully qualified DNS name of the local computer, not the name of the cluster virtual server. The fully qualified DNS name is a combination of the DNS host name and the DNS domain name, using the form HostName.DomainName. | 
result = ComputerNameGet( 0 ) Message( "The NetBIOS name of the local computer.", result )