I am createing a vbs file to grab user info on logon.
I currently have
Set WSHNetwork = WScript.CreateObject("WScript.Network"
strUser = ""
While strUser = ""
strUser = WSHNetwork.UserName
wend
I need to be able to log the IP of the person who logs in, how can I do this?
Also how can I write this to a file?
Thanks
I currently have
Set WSHNetwork = WScript.CreateObject("WScript.Network"
strUser = ""
While strUser = ""
strUser = WSHNetwork.UserName
wend
I need to be able to log the IP of the person who logs in, how can I do this?
Also how can I write this to a file?
Thanks