Windows 10: Help - How to get out of hibernation if a batch file is repeating a hibernation command?

Discus and support Help - How to get out of hibernation if a batch file is repeating a hibernation command? in Windows 10 Performance & Maintenance to solve the problem; I need some help. I was writing a script to automatically abort shutdowns from Windows Updates. I was intending to use shutdown -a ("a" for abort)... Discussion in 'Windows 10 Performance & Maintenance' started by Vlad1mir, Mar 12, 2019.

  1. Vlad1mir Win User

    Help - How to get out of hibernation if a batch file is repeating a hibernation command?


    I need some help.


    I was writing a script to automatically abort shutdowns from Windows Updates. I was intending to use shutdown -a ("a" for abort) and set it to repeat every 15 minutes, but I wasn't paying attention. I accidentally put shutdown -h ("h" for hibernation) instead. To make matters worse, I set it to repeat every 15 milliseconds instead of every 15 minutes, so now it keeps going back into hibernation instantaneously as soon as I come out of it.


    I tried cutting the power completely including unplugging the cord to hopefully end the Windows session, but when Windows boots up it is still hibernating and the batch file starts executing automatically before I can see the desktop to do anything.


    I tried booting from the Windows 10 DVD and clicking to repair the startup, but it said it failed to repair the startup. Not sure if it has to do with the fact the computer is in hibernation mode. What else can I do with the Windows 10 DVD? I feel like the solution may be on there somewhere. There is a command prompt as one of the options, but I'm not sure what I would need to type or if that can even connect to the Windows session on the C drive. Any way to boot into safe mode from this DVD?


    I need to somehow close out that Windows session to stop the script but do not know how. It's like I gave myself a computer virus.


    I thankfully do have a second computer to work with (the one I am posting this from).


    Thanks for any help.

    :)
     
    Vlad1mir, Mar 12, 2019
    #1

  2. About the Hibernate Command in Win10

    I updated from 8.1 to 10 Home and cannot hibernate anymore

    in 8.1 I created a batch to hibernate with the command "shutdown -h"

    now I tried the same but no success.

    I opened a command prompt with admin rights an typed: powercfg /hibernate on as suggested on several internet pages to add the hibernate option to the shutdown menu but w/o success.

    If I execute shutdown -h from the admin command prompt I get the error message:
    The request is not supported.(50)

    I applied the above mentioned Method 1... no help, then Method 2 and the first command returned with No component store corruption detected, even so I ran the second command.

    BTW, in my registry the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power reads
    HibernateEnabled REG_DWORD 0x00000001 (1).

    Any help here? Is there perhaps another way to workaround this issue and enable hibernation in the registry?

    cheers

    FAB
     
    FranzBraun, Mar 12, 2019
    #2
  3. Missing hibernate button

    Hi Yusak,

    We would like to isolate this issue that you're having right now. Will you be able to provide the exact error message that you recieved?

    We suggest that you try to enable hibernation on your device using the Command Prompt.

    To make hibernation available, follow these steps:

    • Click Start, and then type cmd in the Start Search box.
    • In the search results list, right-click Command Prompt, and then click Run as Administrator.
    • When you are prompted by User Account Control, click Continue.
    • At the command prompt, type powercfg.exe /hibernate on, and then press Enter.
    • Type exit, and then press Enter to close the Command Prompt window.

    We will wait for your response.

    Regards.
     
    Leviozar Gam, Mar 12, 2019
    #3
  4. Help - How to get out of hibernation if a batch file is repeating a hibernation command?

    hibernating windows 10

    Hi Henry,

    We appreciate your time and effort to get back to us.

    I suggest you to enable the Hibernate option from power settings and check if you are able to access the Hibernate in power options. Follow the below steps.

    Please try the steps and check if it helps.


    • Press Windows + R keys on the keyboard to open Run command.

    • Type powercfg.cpl to open the power settings.

    • Click on the Choose what power buttons do on the left navigation pane.

    • Click on Change settings that are currently unavailable (Enter the admin credentials if prompted)

    • Check the Hibernate box.

    • Click on Save changes.

    • Restart the computer.

    • Check if you are able to see the Hibernate option in power options
    I hope the above information helps. Kindly let us know if you need any further assistance with Windows. We are glad to assist you.

    Thank you.
     
    Kiran Kishore, Mar 12, 2019
    #4
Thema:

Help - How to get out of hibernation if a batch file is repeating a hibernation command?

Loading...
  1. Help - How to get out of hibernation if a batch file is repeating a hibernation command? - Similar Threads - Help hibernation batch

  2. Hibernation

    in Windows 10 Performance & Maintenance
    Hibernation: Hi, I have been using a Mac for many years and have just bought a Windows laptop so I'm not very familiar with it yet. However, I seem to be having an issue with hibernation. When I hibernate my computer, it appears to shut down instead. When I choose hibernate from the...
  3. CMD Keeps Repeating Command in Batch File and Avast Scanned A Virus in It

    in AntiVirus, Firewalls and System Security
    CMD Keeps Repeating Command in Batch File and Avast Scanned A Virus in It: My CMD keeps repeating my command again and again and again in my batch file, without running the command. ex: the batch file i wrote was shutdown /s /f /t 001 and the CMD window would appear like this [ATTACH] And Avast suddenly appeared . . . [ATTACH] I tried...
  4. Hibernating

    in Windows 10 Performance & Maintenance
    Hibernating: Please guys I have a Windows 10 laptop with built in battery, tor the past three days I couldn't use my laptop cause it's stuck in "Hibernating" . I've tried to boot up my PC it keeps on showing "Hibernating" which can't stop showing. I've left it in Hibernating for more...
  5. How to get out of hibernation if batch file repeating hibernation cmd?

    in Windows 10 Support
    How to get out of hibernation if batch file repeating hibernation cmd?: Hello, I got myself into a bit of trouble here. *Huh I was writing a script to automatically abort shutdowns from Windows Updates. I was intending to use shutdown -a ("a" for abort) and set it to repeat every 15 minutes, but I wasn't paying attention. *Sleepy I accidentally...
  6. Hibernation

    in Windows 10 Performance & Maintenance
    Hibernation: How can I prevent my computer from waking itself up during Hibernation? I'm sick of returning to my computer, having hibernated it hours earlier, only to find that it woke itself up, installed updates (that it never warned me were coming), and shut itself down with all of my...
  7. Hibernation

    in Windows 10 Installation and Upgrade
    Hibernation: Hi ,my laptop has gone into hibernation and I am unable to turn it on https://answers.microsoft.com/en-us/windows/forum/windows_10-update/hibernation/a910cf55-ee74-4953-b20f-bd59d58f4024
  8. Hibernate

    in Windows 10 Customization
    Hibernate: How can i make hibarnate with cmd? Thanks to all. :-) https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/hibernate/b1446277-911a-4d39-9763-eb1d120b1b89
  9. "Hibernate" file name and location

    in Windows 10 Support
    "Hibernate" file name and location: What, if any, is the name and location of the file that hibernates Windows, please? I understand that hibernation can be initiated via "shutdown /h" but that's not what I seek. Thanks. 22140
  10. Sleep and hibernate command line

    in Windows 10 Support
    Sleep and hibernate command line: How to do them without breaking something? Sleep in my computers are hybrid (desktop) and not hybrid (laptop). Quick boot is off. 94012