Note: The values for the tweaks listed below are a recommended value only and represent what has worked best on a variety of systems. If you are not comfortable trying this tweak for your system, please do not attempt it.
Go to Start>> Run. Type in: regedit [Enter] or click OK.
Drill down to the following registry key:
Click once on the entry titled: Desktop
The contents of the “Desktop” entry will now be displayed in the right pane.
Double click the entry titled: HungAppTimeout
Change the “Value data” to a value of: 4000
This change will control the delay that Windows uses to start the shutdown process. (1000 = one second)
Double click the entry titled: MenuShowDelay
Change the “Value data” to a value of: 20
This change will control the delay that Windows uses to display a menu or sub-menu.
Double click the entry titled “AutoEndTasks”
Change the “Value data” to a value of: 1
Changing this value to “1” will turn ON this feature and will now automatically close all running applications when shutting down Windows. Note: With this feature on, you will not be given a prompt to save Windows.