The ComputerName property provides a string representation of the computer name.
WshNetwork.ComputerName = strComputerName
© 1997 by Microsoft Corporation. All rights reserved.