Link to home
Start Free TrialLog in
Avatar of Mark Ellis
Mark EllisFlag for Australia

asked on

Hibernation file on Citrix server

I have a Windows 2008R2 server and after reboot there is a 33GB hibernation file in the C:\ drive so I am running out of disk space.  I can run a command to turn it off that makes the hibernation file go away:
C:>  powercfg -hibernate off
I don't understand why it turns up in the first place.
How do I make sure it never turns on?
Avatar of Ayman Bakr
Ayman Bakr
Flag of United Arab Emirates image

It must be that by default the hibernation, turn off harddisk and/or system standby are all on.

On a server like Citrix these should be turned off.

With the command you have issued I believe you should have already disabled hibernation. But also make sure that you make your turn off harddisk and system standby is set to never.

Also ensure the following value in the registry:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power "Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00
I think this is a setting that has been pushed to Windows (not just servers, but also Windows 7 etc.) by the last Windows updates. I've noticed the hibernation file on serveral Windows OS machines recently that previously didn't have it. This isn't really an answer to your Question though, you have answered it yourself by turning hebernation off again manually...
1.Click Start, and then type cmd in the Start Search box.
2.In the search results list, right-click Command Prompt, and then click Run as Administrator.
3.When you are prompted by User Account Control, click Continue.
4.At the command prompt, type powercfg.exe /hibernate off, and then press ENTER.
5.Type exit and then press ENTER to close the Command Prompt window.

http://support.microsoft.com/kb/920730
I don't agree with you accepting that as the answer to your Question, as it is exactly the same command you had already found and posted yourself. It doesn't give any new insight at all.

You should rather either accept your own Question as the answer (as that probably ins't possible, make a Quote of it in a new Comment, and then accept that comment), or have the Question deleted.
ASKER CERTIFIED SOLUTION
Avatar of Mark Ellis
Mark Ellis
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark Ellis

ASKER

IT is a work around.