retrieve client name

  • Thread starter Thread starter Bertrand
  • Start date Start date
B

Bertrand

hi

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

any idea ?

thanks
 
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
 
Back
Top