Discussion Locked

prevent canceling of logon script

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When a 95/98 client logs onto a WinNT domain and runs a logon script, if the logon script is long and the user wants to kill it...they can, just by clicking the close box on the top-right corner of the window.

How do I prevent the user from beingable to cancel out of the logon script? I want it to run completely all the time.

However I do this, it needs to be without using any third-party software.

Thanks,
Robert

7 replies

by gmscne

There is a command for this feature to provide against having users quit out of a logon script. It's called NOBREAK. It prevents a ctrl-brk or a ctrl-C from terminating a logon script. It runs best with a Novell client.

by bhrdwh

Create a batch file that calls the actual logon script. Using Notepad, create a file that has the following entry:

START /MIN LOGON.BAT

Save the batch file and specify this file as the logon script name for the user accounts in User Manager for Domains. Now, when the users log on to Windows NT, they will initially run the above batch file, which, in turn, calls the logon script and starts it minimized. The last entry in the real logon script file must be EXIT so the file will close properly.

This works great and solves the problem of users seeing the commands being processed in the actual logon script.

To have the logon script dialog box minimized during logon and support all clients, do the following:
1. For the initial preparation, insert a pause statement into the logon script specified in User Manager for Domains. This pause will be important because it is needed to access the properties of the logon script window.
2. Log on to the workstation as the user inquestion and, when the logon script pauses, select Properties from the Control menu.
3. Select the Layout tab in Windows NT 4.0 or the Screen Size and Position tab for Windows NT 3.51, and set the Width and Height on the Screen Buffer Size and Window Size to 1.
3. Set the Window Position to 0 for the Left setting and set the Top position to the highest number possible (this will vary depending on the screen resolution). This will put the Window in the lower left-hand corner of the screen.4. Select OK after changing the settings and then you will be presented with an Apply Properties dialog box.
5. Select "Save properties for future windows with the same title" and then select OK.
6. Log off as the user, remove the pause from thelogon script, and then log back on. The dialog box is still present, but in the lower left corner of the screen out of the users way.
Akash

This discussion is closed to new replies.