Logon script

  • 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.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.

Thanks!
 
Once you open up a terminal services session, can you run
that cscript logon.js command successfully in a command
prompt window (for instance)? Are your terminal servers
in a different GPO that might be overriding the default
logon script somehow?

-M
-----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.
 
cscript.exe logon.js won't run in a CMD-window mainly because it cannot find the file. If I use the path, of course, then it works. But this doesn't help me. We have a standard logon script and it runs for the user logging onto their workstation, it just doesn't run in a terminal session. As I said before, if I change the GPO back to Name: logon.js, I have no problems.
 
It sounds like you have answered your own question. If
cscript.exe logon.js isn't running, then I'd imagine that
it can't find the cscript.exe program. Can you verify
that it is in your path statement/environmental variable?

-M
-----Original Message-----
cscript.exe logon.js won't run in a CMD-window mainly
because it cannot find the file. If I use the path, of
course, then it works. But this doesn't help me. We have a
standard logon script and it runs for the user logging
onto their workstation, it just doesn't run in a terminal
session. As I said before, if I change the GPO back to
Name: logon.js, I have no problems.
 
Back
Top