From a note by electronicsfreak, I believe quoting forum Member BigBadBen: thread779-1189157
WaitToKillAppTimeout ( original value = 20000) Lower to make faster
hungapptimeout = 500 (lower to make faster)
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\verbosestatus"
Set this value to 1 (TRUE), it will then LOG any INFO to the EVENT VIEWER...
"HKCU\Control Panel\Desktop\AutoEndTasks" set this to 1 (TRUE), this will kill TASKS quick...
"HKCU\Control Panel\Desktop\" look for the Values "HungAppTimeout" and "WaitToKillAppTimeout", the first is for manually shutting down APPS (Exiting a Program) and the Second is for Shutdown... set these to 2 and 5 respectively...
"HKLM\System\CurrentControlSet\Control\WaitToKillServiceTimeout"
Setting this to a value of 2 to 5, will kill the Services still running in the background faster during Shutdown...
"HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown"
if this value is set to 1 (TRUE) then the PAGEFILE will get deleted everytime you shutdown, ergo slowing down the SHUTDOWN process, if it is set to 0 (or non existing) then leave it for a faster shutdown..