Hibernation file on Citrix server

Posted on 2012-08-29
Last Modified: 2012-09-23
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?
Question by:Xenon6
    LVL 23

    Expert Comment

    by:Ayman Bakr
    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
    LVL 87

    Expert Comment

    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...
    LVL 22

    Expert Comment

    by:Matt V
    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.
    LVL 87

    Expert Comment

    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.

    Accepted Solution

    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.

    Author Closing Comment

    IT is a work around.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    #Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
    How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now