I am trying to get rid of the hiberfil.sys on our systems by implementing a computer startup or shutdown script in group policy. I created a .cmd file with:
echo %date% %time% >>c:\temp\hibernate.log powercfg.exe -h off
The log shows the script runs, but hibernation is still enabled and the hiberfil.sys file remains. I'm beginning to think that perhaps a necessary service has not started up yet or has already shutdown which is preventing the command from working. Has anyone successfully disabled hibernation using a startup or shutdown script?