WshNetwork.ComputerName

The ComputerName property provides a string representation of the computer name.

Syntax

WshNetwork.ComputerName = strComputerName