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?
Mark EllisSecurity & Citrix EngineerAsked:
Who is Participating?
 
Mark EllisConnect With a Mentor Security & Citrix EngineerAuthor Commented:
All I did was use the command powercfg -hibernate off in a short .cmd file that I ran after logon using a schedualed task.
There has been no suggestion why it keeps comming back on each time the server reboots.  I am really just using a work around.
0
 
Ayman BakrSenior ConsultantCommented:
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
0
 
rindiCommented:
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...
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
Matt VCommented:
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
0
 
rindiCommented:
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.
0
 
Mark EllisSecurity & Citrix EngineerAuthor Commented:
IT is a work around.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.