Cannot Disable Hibernation using Startup or Shutdown script

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?

 
August 25th, 2015 5:02pm

1. You can use scheduled tasks at start/logon with SYSTEM and elevated privileges.

2. Perhaps there is GPO alternative.

3. HW alternative is hidden in BIOS settings, I expect.

M.


Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 6:13pm

It might be due to the permission. I would also stress to try the scheduled tasks approach suggested by Milos above.. I used did it which works well.

Let's know the status...



August 26th, 2015 9:39am

Any update? Does it work for you?
Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 11:22pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics