Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display hostname and username on intranet

Status
Not open for further replies.
Mar 1, 2003
853
US
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

Robert Lin, MS-MVP, MCSE & CNE
Windows, Network and How to at
 
Hi JJ26,

I have tried this. response("server_name") display server name, response("remote_name") display ip, response("auth_user") diplay non thing.

Robert Lin, MS-MVP, MCSE & CNE
Windows, Network and How to at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top