Property:  WshNetwork.ComputerName

WshNetwork.ComputerName

The ComputerName property returns a string that is the current computer's name. This property is read only.

The following JScript code illustrates the use of this property under WSH 2.0 on a Windows 2000 system.

Code:
WScript.Echo("ComputerName =", WshNetwork.ComputerName)

Output:
ComputerName = Pleasant.ch Server