Last night I was reading about virtualising Windows Server 2008 r2 in this book: http://www.amazon.com/Virtualizing-Microsoft-Applications-VMware-vSphere/dp/0470563605 page 106. One of the many recommendations was to disable hibernation; now to disable hibernation you just need to run powercfg.exe -h off.
My quandary was how do I implement this via Group Policy? – well I couldn’t find an option to disable hibernation via Group Policy, so I wrote a vbscript that runs when the computer starts up.
This script basically looks for c:\hiberfil.sys; if it finds hiberfil.sys then it runs powercfg.exe -h off
You can find the script here. Please note I’ve uploaded the script as a text file, if you wish to run it you’d need to change it to .vbs.