Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
March 20, 2006
To determine the NetBIOS domain name, ComputerName, and UserName of the logged on user:
Set WshNetwork = WScript.CreateObject("WScript.Network")WScript.Echo "Domain = " & WshNetwork.UserDomainWScript.Echo "Computer Name = " & WshNetwork.ComputerNameWScript.Echo "User Name = " & WshNetwork.UserName
You May Also Like