I got the code below from somewhere on this site, to produce a box displaying the network username and computername.
I'd like to modify it to write that data (along with date/time, if feasible) to a log file instead...
Any help appreciated...
stinsman
I'd like to modify it to write that data (along with date/time, if feasible) to a log file instead...
Code:
Set WshNetwork = WScript.CreateObject("WScript.Network")
WScript.Echo "Username: " & WshNetwork.UserName + Chr(13) + "Computer Name: " & WshNetwork.ComputerName
Any help appreciated...
stinsman