Saturday, April 25, 2009

Kill Hung Processes When Logging Off in Windows NT

When you tell NT to shut down, it first sends shutdown requests to any running processes.
Most 32-bit applications honor 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 adding a REG_SZ value named HKEY_USER\\ControlPanel\Desktop\AutoEndTasks and set the value to 1. You can also add this value to HKEY_USERS\.DEFAULT so that all new accounts will shut down the same way.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...