A. When you tell NT to shut down, it first sends shutdown requests to any running processes. Most 32-bit applications honour these requests and shut down, 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 if you want to kill the task, wait for the task to die on its own, or cancel the shutdown. By modifying the Registry, you can automate this process.
You can force NT to kill all running processes on shutdown by performing the following:
- Start the registry editor (regedit.exe)
- Move to HKEY_CURRENT_USER\Control Panel\Desktop
- If a value "AutoEndTasks" does not exist from the Edit menu select 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\.DEFAULT\Control Panel\Desktop for new users to inherit.