Logon script problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We deploy a logon script via GPO to all users. The logons script is called logon.js. Since we have users which have installed special software on their workstation (e.g. Dreamweaver), the logon script does not run with the default CSCRIPT.EXE. So, we ahve modified the GPO setting Scripts (Logon/Logoff) to Name: cscript.exe, Parameters: logon.j
This works fine for all users now. However, we now have the problem that the logon script does not run when a user creates a terminal session and logs on. Before, when we had Name: logon.js, it worked

doe sanyone have any suggestions as to what I can do to get the new setting (Name: cscript.exe, Parameters: logon.js) to work when creating a terminal session and logging on. Or can anyone explain to me why it does not work

Thanks
 
You could use IF "%SESSIONNAME%"=="" to test if the logon
is local then branch your script to run cscript.exe
logon.js. If a user is logging in to a terminal session
the SESSIONNAME variable will be set to something
like "RDP-TCP#52". The exact value will always be
different so you can not check for a specific value in
your script. But, the variable will always be null when
the user is logged in locally.

-----Original Message-----
We deploy a logon script via GPO to all users. The logons
script is called logon.js. Since we have users which have
installed special software on their workstation (e.g.
Dreamweaver), the logon script does not run with the
default CSCRIPT.EXE. So, we ahve modified the GPO setting
Scripts (Logon/Logoff) to Name: cscript.exe, Parameters:
logon.js
This works fine for all users now. However, we now have
the problem that the logon script does not run when a user
creates a terminal session and logs on. Before, when we
had Name: logon.js, it worked.
doe sanyone have any suggestions as to what I can do to
get the new setting (Name: cscript.exe, Parameters:
logon.js) to work when creating a terminal session and
logging on. Or can anyone explain to me why it does not
work.
 
Back
Top