Keep in mind that extending the shutdown cancellation timeout can be useful in certain situations, but it also means that it will take longer for your computer to shut down.
In Start Search type "regedit" (without quote) and press Enter. This will open the Windows Registry Editor.
Navigate to the following registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability
- Right-click on the right pane, select "New," and then choose "DWORD (32-bit) Value."
- Name this new DWORD as "UIShutdownBlockTimeout."
- Double-click on "UIShutdownBlockTimeout" to edit its value.
- In the "Value data" field, enter the timeout value in seconds. For example, if you want a 5-minute (300 seconds) timeout, enter "300."
Reboot.