win 2003 logon script won't run

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: atk (atk_at_united.daemons.invalid)
Date: 04/29/04


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"



Relevant Pages

  • Re: Win2003 TS Slow to Connect
    ... Since the server is freshly installed, I assume that it runs SP1? ... 324446 - Terminal Server and connected Terminal Services clients ... pause when a Terminal Services client logs on or logs off ...
    (microsoft.public.windows.terminal_services)
  • RE: ISA 2000 and 3rd NIC
    ... applied to ISA server 2000, another article is applied to the Terminal ... Microsoft Online Partner Support ...
    (microsoft.public.isa)
  • Netdiag.exe hangs
    ... We were having some problems with authenticating to a Windows Server 2003 DC ... Terminal Services clients were ... While the main problem (slow authentication) ...
    (microsoft.public.windows.server.networking)
  • Moving to New Server with TS Clients
    ... I purchased 10 Terminal Services Clients that a client of ... The server is having hardware problems and I need to move ... Charlie ...
    (microsoft.public.win2000.termserv.clients)