Discussion:
retrieve client name
(too old to reply)
Bertrand
2005-07-27 16:05:00 UTC
Permalink
hi

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

any idea ?

thanks
Rickard(Riwe)
2005-07-27 16:38:14 UTC
Permalink
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
Post by Bertrand
hi
i'am looking for a vbs script which retrieve the computer client name
connected in a session.
any idea ?
thanks
Loading...