B
Bob Lin
I would like to display the hostname (or computername) and username (or
logonID) on our Intranet support page. I saved the following vbs code as asp
file, but it doesn't display the username. No error also. Do I miss some
thing?
dim objNetwork
Set objNetwork = WScript.CreateObject("WScript.Network")
strUserDomain = objNetwork.UserDomain
Wscript.Echo "User " & objNetwork.UserName
Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.
logonID) on our Intranet support page. I saved the following vbs code as asp
file, but it doesn't display the username. No error also. Do I miss some
thing?
dim objNetwork
Set objNetwork = WScript.CreateObject("WScript.Network")
strUserDomain = objNetwork.UserDomain
Wscript.Echo "User " & objNetwork.UserName
Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.