Click the Control key folder, as shown in Figure A, and look for the WaitToKillServiceTimeout key. Double-click that key and change the value from the 5000 default to 2000, and then click OK. This changes the time Windows 10 will wait for an unresponsive service from 5ms to 2ms.
How can I improve my shutdown speed?
To increase shutdown speed, disable page file by following the guide: Step 1: Run Windows Registry Editor (as mentioned above). Step 2: Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management. Step 3: Double-click on ClearPageFileAtShutdown and set the value data to 0.