Can I turn Hibernation Off offline with dism?

Discussion in 'Windows 8' started by Flipp3r, Oct 23, 2012.

  1. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,530
    655
    60
    #1 Flipp3r, Oct 23, 2012
    Last edited by a moderator: Apr 20, 2017
    Is it possible to force hibernation off offline with dism?
    I've tried this:
    Code:
    Dism /Mount-Wim /WimFile:install.wim /index:7 /MountDir:Mount
    reg load HKLM\WIM_System Mount\Windows\System32\config\SYSTEM
    reg import Disable_Hibernate.reg
    reg unload HKLM\WIM_System
    Dism /Unmount-Wim /MountDir:Mount /Commit
    Where Disable_Hibernate.reg contains:
    Code:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\WIM_System\ControlSet001\Control\Power]
    "HibernateEnabled"=dword:00000000
    When I perform the install & check, hibernation is ON...
    Any ideas??
     
  2. Luckie

    Luckie MDL Junior Member

    Jan 14, 2008
    80
    15
    0
    use setupcomplete.cmd instead. It is easier.
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    7,716
    25,017
    240
    #4 abbodi1406, Oct 24, 2012
    Last edited by a moderator: Apr 20, 2017
  4. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,530
    655
    60
    #5 Flipp3r, Oct 25, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
  5. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,530
    655
    60
    If you run Sysprep it is back on the next time the user boots back in...
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    7,716
    25,017
    240
    It was working in Win7
    in win8 i tried it today an did not work indeed

    sorry for that :)
     
  7. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    876
    457
    30
    what if you use audit mode, than capture?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,530
    655
    60
    #10 Flipp3r, Oct 12, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
  9. RickSteele

    RickSteele MDL Addicted

    Nov 12, 2009
    833
    483
    30
    sweet!, very nice :)
     
  10. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,530
    655
    60
    How rude of me not to Thank you! ;)
     
  11. RickSteele

    RickSteele MDL Addicted

    Nov 12, 2009
    833
    483
    30
    Absolutley no worries; just glad you worked it out. I run a couple of FirstLogon cmd's myself from autounattend and they are a peach. :biggrin: I've never used AutoIt, but, have read of it's excellent prowess.
    One thing though, this method does not prevent Hyberfil from loading during setup-n'est pa'? So, the file gets written to the SSD and deleted immediately before desktop which we are trying to prevent completely-write cycles to cells. It is another one of M$'s great genius moves in an OS that is supposed to be SSD friendly! :chair:
     
  12. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    527
    369
    30
    #14 HALIKUS, Oct 14, 2014
    Last edited by a moderator: Apr 20, 2017