retrieve client name

B

Bertrand

hi

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

any idea ?

thanks
 
R

Rickard\(Riwe\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top