I was (for my sins) working on a Windows Server 2008 box today. To make it worse it was a VM with very little disk space. In trying to find things to remove I found hiberfil.sys sitting there at 4Gb! I tried to delete it but Windows wouldn’t let me. I then went into power settings, disabled hibernation (or so I thought) and tried to delete it again… still no joy.
Anyway, it turns out the easiest (or only, I don’t know) way of deleting this stupid file (why Windows SERVER would need to hibernate anyway is beyond me!) is to drop into command prompt and run the following command:
powercfg -h off
Easy when you know how, but annoying if you don’t!