Microsoft

Tech Tip: End all nonresponsive applications

A nonresponsive application can prevent a server from properly shutting down. This is especially problematic when attempting to remotely shut down a server.

To alleviate this problem, consider modifying the registry to automatically terminate hung applications, which will allow the server to completely shut down. Here's how to make this change for all users:

  1. Start the Registry Editor (Regedit.exe).
  2. Browse to HKEY_USERS\.DEFAULT\Control Panel\Desktop.
  3. To enable AutoEndTasks, modify its value to 1.
  4. Close the Registry Editor, and restart the system.

You can also specify an amount of time that the server will wait to automatically end the process. Follow these steps:

  1. Start the Registry Editor (Regedit.exe).
  2. Browse to HKEY_USERS\.DEFAULT\Control Panel\Desktop.
  3. Modify the contents of the WaitToKillAppTimeout key to the time in milliseconds that the server should wait before killing the task. The default is 20,000 milliseconds (20 seconds).
  4. Close the Registry Editor, and restart the system.
  5. Note: Editing the registry is risky, so make sure you have a verified backup before saving any changes.

Editor's Picks