The first thing we need to go to registry editor. to do so click Start \ Run and type in “regedit” (no quotes) then click OK.
Now with the Registry Editor open locate the following key
HKEY_CURRENT_USER \ Control Panel \ Desktop
scroll down to HungAppTimeout and change the default 5000 to 1000 then click OK.
Then scroll down to WaitToKillAppTimeout from 20000 to 1000 then click OK.
Keep the Registry Editor open as we have 3 more values to change in two different sections.
Next we are going to
HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control
and double click on WaitToKillServiceTimeout to 1000 then click OK.
Finally, we need to navigate to
HKEY_USERS \ DEFAULT \ Control Panel \ Desktop
and change HungAppTimeout to 1000 and click OK.
Then scroll down to WaitToKillAppTimeout to 1000 and click OK.