Showing posts with label
get computer name using vbscript.
Show all posts
Showing posts with label
get computer name using vbscript.
Show all posts
Set oNetwork = CreateObject("WScript.Network")
sUserName = oNetwork.UserName
sComputerName = oNetwork.ComputerName
MsgBox("UserName = " & sUserName & vbCRLF & "ComputerName = " & sComputername)