Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows 2000 / Terminal Services / July 2005

Tip: Looking for answers? Try searching our database.

retrieve client name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bertrand - 27 Jul 2005 17:05 GMT
hi

i'am looking for a vbs script which retrieve the computer client name
connected in a session.

any idea ?

thanks
Rickard(Riwe) - 27 Jul 2005 17:38 GMT
The following script should work:

Dim WSHNetwork
Dim strWorkstation

Set WshNetwork = CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objEnv = WshShell.Environment("Volatile")
strWorkstation = objEnv("CLIENTNAME")
wscript.echo (strWorkstation)

Rickard
> hi
>
[quoted text clipped - 4 lines]
>
> thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.