win 2003 logon script won't run
From: atk (atk_at_united.daemons.invalid)
Date: 04/29/04
- Next message: Jagdish S. Khedekar: "Re: How to redirect output of shell command using WMI"
- Previous message: Stivie S.: "Re: How to redirect output of shell command using WMI"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 08:46:04 GMT
Hi,
trying to run logon.vbs that sets some environment variables
for Terminal Services clients with w2k and XP. Server is
Win2003, stand alone, no AD.
I've set script to GroupPolicy/User/Windows/scripts/Logon,
on command line it works fine, but it does not run when
I log in from client machine.
Basic thing but I'm stuck, any help would be appreciated.
--------- script ----------
Set objShell = WScript.CreateObject("WScript.Shell")
Set colUsrEnvVars = objShell.Environment("USER")
colUsrEnvVars("FOOBAR") = objShell.ExpandEnvironmentStrings("%USERPROFILE%")
colUsrEnvVars("FOO") = objShell.ExpandEnvironmentStrings("%USERPROFILE%")&"\foo"
colUsrEnvVars("BAR") = objShell.ExpandEnvironmentStrings("%USERPROFILE%")&"\bar"
- Next message: Jagdish S. Khedekar: "Re: How to redirect output of shell command using WMI"
- Previous message: Stivie S.: "Re: How to redirect output of shell command using WMI"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|