How can I stop a user closing the login script before it completes?

A. It would be possible to modify GINA.DLL and it has been done in the past but there are none available for download at this time.

An alternative is to hide it. This can be done by creating DWORD value HKEY_USERS\\Console\WindowSize and set to 050005 in Hex and HKEY_USERS\\Console\WindowPosition set it to 04FF06FF in Hex. This makes the Window very small and positions it off the screen.

Discuss this Article 6

Had tried on NT and works. However, user needs to reconfigure size of MS-Prompt window size themselves is not advisable. Also, changing the registry for Hkey_users\\Console is tedious if there are hundreds of users. Now that we can hide the logon script, we still cannot hide the shared NETLOGON that has all the scripts that the users can see what was being executed. Any way to solve this? Thanks.