Windows by default, takes 12 seconds to kill any process that is running while windows is shutting down. This is to give the user time to save any work he might need and to give all processes proper chance to close before forcing them to end. Lowering how much time Windows waits for the processes to close, will cause it to shutdown faster.
1.Start-> search for “regedit” (with out””) and run regedit.exe as Admin (Right click on it -> Run As Administrator.)
2.In Regedit, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control and modify WaitToKillServiceTimeout to however you want windows to wait. The time is in thousandths of a second so 5 seconds is 5000. I would recommend not setting this TOO low as
3. This time in Regedit go to HKEY_CURRENT_USER\Control Panel\Desktop , and see if there is a value called WaitToKillAppTimeout, if it is then change it to what you did in step 2. If there isn’t a value called that. Right click on the pane(the box to the right of the navigational pane) go to new -> string value -> name it WaitToKillAppTimeout and then give it the same value as step 2.
4. Now restart your computer and your done.