PDA

View Full Version : prevent logon script being cancelled



Symzie
11-07-2003, 05:38 AM
Hello

We have a program that updates itself by using a logon script; this can take a couple of minutes to run and the users are cancelling before the scripts have run. This is preventing the program from working correctly.

Is there a way I can prevent users from cancelling logon scripts?

Symzie
11-07-2003, 07:36 AM
I should add, I want to hide it or prevent it being cancelled, not minimise it.

jdharm
11-07-2003, 09:03 AM
What OS?

When you say logon script, do you mean a script that is run by virtue of being in a Startup folder, or is it a script being initiated by the domain controller?

Is it a script or a batch file? Scripts shouldn't show a window, and there are applications that hide the command window opened by the batch files.

Personally, I didn't hid the batch file window (it closes pretty fast on its own) but for the popup with the cancel button I modified the file that contains the popup.. The new file has no popup at all, no cancel button to hit. This was on Win98.

Josh
<a target="_blank" href=http://www.jdharm.net>www.jdharm.net</a>

hammerjammer
11-08-2003, 06:37 PM
you can always /s the script on the command line executable. this will run it silenty (ie., no window) and therefore there won't be a cancel option.



-----------------------------------------------------------
what has happened to the quick logon and easy drop-down menus on forums?

HJ

jdharm
11-09-2003, 07:24 PM
Could you give an example of how that is used?

Josh
<a target="_blank" href=http://www.jdharm.net>www.jdharm.net</a>

hammerjammer
11-09-2003, 10:22 PM
you can either set your associations for that particular extension to always run silently (by adding /s to the association) or when you run say a batch file or script file just do:

&lt;filename.ext&gt; /s

and it will run silently

this is particularly useful for .reg files and such, so that there is no confirmation msg asking if you're sure you want to merge the .reg file.



-----------------------------------------------------------
what has happened to the quick logon and easy drop-down menus on forums?

HJ

Symzie
11-12-2003, 01:40 AM
OK thanks for all the suggestions

I've found a way of doing it

hkcurrentuser\software\microsoft\windows\currentve rsion\policies\system

Create dword value "hideLegacyLogonScripts"

Give value of 1 to hide