Not sure what registry fix you are talking about, but this should work....
Control Panel-Administrative tools-Local security policy.
In the window that opens, on the left menu...select 'local policies' then 'security options'
on the right is a long list of items...near the bottom is Shutdown:clear virtual memory pagefile.
double click it and enable it. restart the PC. The next time you shut down, pagefile will be cleared.(NB. This might take 30 or 40 seconds, therefor slowing down system shutdown)