|
Computer Name
This example show accessing computer name and domain.
2 | Set netObj = CreateObject( "Wscript.Network" ) |
4 | WScript.echo "Computer name : " & netObj.ComputerName |
5 | WScript.echo "User Domain : " & netObj.UserDomain |
6 | WScript.echo "User name : " & netObj.UserName |
|
It gives the following output,
Computer name : BETHECODER
User Domain : MSO
User name : kvsudhakar
|
|