How can I automatically kill hung processes when I logoff?
May 6, 1999
A. When you tell NT to shut down, it first sends shutdown requests toany running processes. Most 32-bit applications honour these requests and shutdown, but older 16-bit apps running in the Virtual DOS Machine often won't.When this occurs, the operating system prompts you with a dialog box asking ifyou want to kill the task, wait for the task to die on its own, or cancel theshutdown. By modifying the Registry, you can automate this process.
You can force NT to kill all running processes on shutdown by performing thefollowing:
Start the registry editor (regedit.exe)
Move to HKEY_CURRENT_USERControl PanelDesktop
If a value "AutoEndTasks" does not exist from the Edit menuselect New - String Value. Enter a name of AutoEndTasks and press Enter
Double click on AutoEndTasks and set to 1. Click OK
Close the registry editor
You can also add this key to HKEY_USERS.DEFAULTControl PanelDesktop fornew users to inherit.
About the Author
You May Also Like