Windows 10: Sleep and hibernate command line

Discus and support Sleep and hibernate command line in Windows 10 Support to solve the problem; How to do them without breaking something? Sleep in my computers are hybrid (desktop) and not hybrid (laptop). Quick boot is off. 94012 Discussion in 'Windows 10 Support' started by Pipppero2007, Sep 21, 2017.

  1. 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.

    :)
     
    Pipppero2007, Sep 21, 2017
    #1
  2. Linney Win User

    Windows 10 shutting PC off after inactivity

    Be aware of the command powercfg and its' various uses.

    Powercfg Command-Line Options

    Powercfg Command-Line Options

    Disable, enable customize, the sleep via cmd.exe command powercfg

    Please start the cmd.exe in admin mode [Windows-logo+X]!

    Enable Hibernate in Windows 8 and 8.1, 10

    In the command prompt type: powercfg -h on

    Disable Hibernate in Windows 8 and 8.1, 10

    In the command prompt type: powercfg -h off

    How to disable or enable Hibernate and Sleep at Windows 8 and 8.1?

    Disable or enable Hibernate and Sleep at Windows 8/10 and 8.1, how to?
     
    Linney, Sep 21, 2017
    #2
  3. Hibernate and shutdown problems after Fall Creators Update

    I have the same problem. When I make hibernation, it disables computer completely and after start up all programs are crashed or closed unexpected. I performed a complete reset of Windows to its initial fresh state with deleting of everything, but the issue
    is still present.

    One thing helps, you can disable hibernation in command line (or power shell) with administrator rights with command
    powercfg -h off. After that sleep mode is working but there will be no hibernation.
     
    Evgeniy Zakutin, Sep 21, 2017
    #3
  4. Sleep and hibernate command line

    Hi Pipppero2007

    What is it you are trying to achieve? What is not working?

    Is sleep or hibernation not working as per the timings you entered?

    Is sleep or hibernation failing or does something fail when you awaken?


    Ken
     
    Caledon Ken, Sep 21, 2017
    #4
  5. I wonder the right command lines (cmd) to sleep and hibernate.

    I see that reboot or shutdown are clear commands but for them there are many version and i ask the right way.
     
    Pipppero2007, Sep 22, 2017
    #5
  6. Bree New Member
  7. In admin cmd (or System32 cmd), you type in: Code: powercfg /h on[/quote] this means that the power configuration for hibernate switches to on.

    Then, you can just type in any cmd mode Code: shutdown/h /t 0[/quote] for it to hibernate instantly or, otherwise, Code: shutdown/h[/quote] for it to set a hibernate mode within 30 seconds of the command being introduced.

    as an alternative for the second and third command lines, you can then head for "C:\Windows\System32" and search the file "shutdown.exe". Generate a copy of it wherever you want, I'd advice "C:\ProgramData\Microsoft\Windows\Start Menu" for future accessibility. Then Open the "Properties" windows after right-clicking the file.
    Edit its route from "C:\Windows\System32\shutdown.exe" to "C:\Windows\System32\shutdown.exe /h /t 0" for instant hibernate, or "C:\Windows\System32\shutdown.exe /h" for 30 second delay before hibernate.

    hope it helps
     
    SLENDER RISING, Sep 22, 2017
    #7
  8. Sleep and hibernate command line

    Hello,

    About shutdowb /h i see around other ways to hibernate so i can be sure it will only go to hibernate my pc without touching else?

    About sleep, i looking for a command for sleep (in cmd).

    I am afraid also here that a command line could change something about the sleep (ie some pc has standard sleep, other has hybrid sleep).
     
    Pipppero2007, Sep 22, 2017
    #8
  9. Why do you need a command to sleep, if I may ask?

    Click on Start, click on power icon, click on sleep. You can also access by ALT + F4 menu.

    Here is a complete list of shutdown commands.

    http://www.thewindowsclub.com/shutdo...command-prompt

    Shutdown /h is a command. What settings are you thinking it would change?
     
    Caledon Ken, Sep 22, 2017
    #9
  10. AndreTen Win User
    Another thread with a lot of information about putting computer to sleep and hibernation from command line. According to them, sleep may be problematic, if hibernation is turned on.

    superuser.com | how-can-i-put-the-computer-to-sleep-from-command-prompt-run-menu

    from answers:
     
    AndreTen, Sep 22, 2017
    #10
  11. I have quick boot disabled so i am afraid that it will enable it or else.

    Btw i will try it.

    For sleep i will try the tool.
     
    Pipppero2007, Sep 22, 2017
    #11
  12. There are two terms which are close but different, at least I look at them differently

    There is the BIOS fast, quick, speedy boot and as far as I know the only way to change that setting is to enter BIOS and make the change.

    There is Windows Fast Start Up and that is something you can change in Windows. If you disable hibernation using the
    powercfg -h off
    command it, by default, disables Windows Fast Start Up. If you issue command powercfg -h on to re-enable it will turn hibernation back on and assuming you have not changed Fast Startup it will re-enable. If that is how you disable Fast Startup, and we are talking about same "Fast" they enabling hibernation will enable it.

    You can can also control Windows Fast Startup manually with this tutorial.

    Turn On or Off Fast Startup in Windows 10

    If you shut Windows Fast Startup off this way you can continue to use hibernation as a power setting.

    I'm unaware of a command line that changes the state of Windows Fast Startup. I'm sure if it was readily known Shawn would have included in tutorial.

    Ken
     
    Caledon Ken, Sep 23, 2017
    #12
  13. Kari Win User

    Sleep and hibernate command line

    for it to hibernate instantly or, otherwise, Code: shutdown/h[/quote] for it to set a hibernate mode within 30 seconds of the command being introduced.
    ...
    ...
    Edit its route from "C:\Windows\System32\shutdown.exe" to "C:\Windows\System32\shutdown.exe /h /t 0" for instant hibernate, or "C:\Windows\System32\shutdown.exe /h" for 30 second delay before hibernate.[/quote] Just to clarify this: Hibernate switch (/h) used with shutdown command does not accept time delay switch (/t X where X is delay in seconds). Command shutdown /h /t 0 does therefore not work. Time delay switch can only be used with restart (/r) and shut down (/s) switches

    The only correct way to hibernate with shutdown is shutdown /h without any additional parameters.
     
  14. Worry not about this, I have had it enabled since 2015 and not a single problem with other files or system configuration *Biggrin
    As for the sleep command, I disacknowledge completely on the topic
     
    SLENDER RISING, Sep 24, 2017
    #14
  15. I must truly be thankful for the correction, sire, explains why in other computers it hasn't worked lately. I mean, haven't used the command by itself for almost 2 years now ¯\_(シ)_/¯ people tend to forget
     
    SLENDER RISING, Sep 24, 2017
    #15
Thema:

Sleep and hibernate command line

Loading...
  1. Sleep and hibernate command line - Similar Threads - Sleep hibernate command

  2. Unable to hibernate from the command line

    in Windows 10 Gaming
    Unable to hibernate from the command line: I used to be able hibernate Windows 10 from the command line using a shortcut but for some reason it’s stopped working. The command has always been "shutdown.exe /h /t 0" but the shortcut no longer works. When I copy and paste the same line into a Command Prompt window it...
  3. Unable to hibernate from the command line

    in Windows 10 Software and Apps
    Unable to hibernate from the command line: I used to be able hibernate Windows 10 from the command line using a shortcut but for some reason it’s stopped working. The command has always been "shutdown.exe /h /t 0" but the shortcut no longer works. When I copy and paste the same line into a Command Prompt window it...
  4. Unable to hibernate from the command line

    in Windows 10 Performance & Maintenance
    Unable to hibernate from the command line: I used to be able hibernate Windows 10 from the command line using a shortcut but for some reason it’s stopped working. The command has always been "shutdown.exe /h /t 0" but the shortcut no longer works. When I copy and paste the same line into a Command Prompt window it...
  5. Command line commands

    in Windows 10 Customization
    Command line commands: I would like to create a shortcut on the desktop using a command in a .bat file. I would like to specify what icon file to use, what program to execute, and the parameters to pass to the program. I have researched MKLINK but I don't think it will do the job. Any...
  6. Command Line

    in Windows 10 Network and Sharing
    Command Line: I am attempting to copy and entire directory from one HDD to another, by keep getting an error of "Invalid umber of parameters." The file path to the Directory is as follows: G:\Users\USERNAME\Desktop\OLD OS FOLDER The destination folder is C:\OLDOS Can someone PLEASE...
  7. Command Line

    in Windows 10 Ask Insider
    Command Line: My command line shows a different name when im the only user on the pc. submitted by /u/Fuadop [link] [comments] https://www.reddit.com/r/Windows10/comments/hv4f7i/command_line/
  8. Command Line

    in Windows 10 Support
    Command Line: Is there a command line entry that will help check and repair drivers, and .dll's files. Or a way to have W10 (1909) repair/replace Only whats corrupt or missing? 148659
  9. Command Line

    in Windows 10 Network and Sharing
    Command Line: Hello sir. I am using windows 10 64bit. Earlier the netsat command use to work but it doesnt work now. whenever i try this command it displa an error. C:\>netstat 'netstat' is not recognized as an internal or external command, operable program or batch file. i have tried...
  10. Win 10 home 64 bit command line Sleep command

    in Windows 10 Support
    Win 10 home 64 bit command line Sleep command: If I use the power icon and thenclick sleep my backup software will wake up my computer and backup run myschedule. If I use any of the followingcommand lines, the software cannot wake my computer, I have ran “powercfg/h /off” at C:\windows\system32 in Powershell as...