I have a script to get a client's computer name when they log into the server. It worked in 2003 server, but now that I use it on 2008 server 32 bit, I don't get the clients name back.
OPTION EXPLICIT 'Force all variable to be declared
' Declare my variables
Dim fso, ws, file_to_open, DisplayClientExe_PATH, file_to_open_PATH
Dim WSHNetwork, strWorkstation, Wshshell, objEnv
Set WshNetwork = CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objEnv = WshShell.Environment("Volatile")
strWorkstation = objEnv("CLIENTNAME")
wscript.echo (strWorkstation)
wscript.echo "This does work
OPTION EXPLICIT 'Force all variable to be declared
' Declare my variables
Dim fso, ws, file_to_open, DisplayClientExe_PATH, file_to_open_PATH
Dim WSHNetwork, strWorkstation, Wshshell, objEnv
Set WshNetwork = CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objEnv = WshShell.Environment("Volatile")
strWorkstation = objEnv("CLIENTNAME")
wscript.echo (strWorkstation)
wscript.echo "This does work