Windows 10: Sleep and hibernate command line

Page 2 of 2 FirstFirst 12

  1. Posts : 13,461
    Windows 10 Pro
       24 Sep 2017 #11

    SLENDER RISING said: View Post
    Then, you can just type in any cmd mode
    Code:
    shutdown/h /t 0
    for it to hibernate instantly or, otherwise,
    Code:
    shutdown/h
    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.
    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.

    Kari
      My ComputerSystem Spec

  2.    24 Sep 2017 #12

    Pipppero2007 said: View Post
    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?
    Worry not about this, I have had it enabled since 2015 and not a single problem with other files or system configuration
    As for the sleep command, I disacknowledge completely on the topic
      My ComputerSystem Spec

  3.    24 Sep 2017 #13

    Kari said: View Post
    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.

    Kari
    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
      My ComputerSystem Spec

  4.    25 Sep 2017 #14

    Everything works, i only need to test pstools for suspend.
    Its weird its a tool fron 2006...
    Also dont understand what eula does, why somebody add -accepteula in the command line and if this pstool is a service or just an exe.
    Hope to test tomorrow.
      My ComputerSystem Spec


  5. Posts : 10,815
    Windows 10 (Pro and Insider Pro)
       26 Sep 2017 #15

    Pipppero2007 said: View Post
    Everything works, i only need to test pstools for suspend.
    Its weird its a tool fron 2006...
    Also dont understand what eula does, why somebody add -accepteula in the command line and if this pstool is a service or just an exe.
    Hope to test tomorrow.
    Eula is usually referred to as an End User Licence Agreement. Looks like you have to agree to pstools EULA if you use it... If you want to use it in command line, you have agree with the terms in that way...

    from Wikipedia:

    In proprietary software, an end-user license agreement or software license agreement is the contract between the licensor and purchaser, establishing the purchaser's right to use the software.
    I'll look around, if there is another way to do that.
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Related Threads
I recently did a fresh install of Win 10 Creative Update. I have Hibernate on my pc set to Never. My computer is set to Sleep after 20 minutes which works fine. After it goes to sleep a minute later I can hit a key and it will return from sleep. The...
i want start a Run a scheduled task via command line like this: Code: %SystemRoot%\system32\taskschd.msc /Run /TN "RegIdleBackup" when i run the cmd in the prompt as admin the shedular task GUI pop up but the task not start. Is there a...
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...
Solved Can't add user via command line in User Accounts and Family Safety
I am trying to add a user via the command line through a virtual pc I added with VMWare. I'm running windows 10, and unable to add because this is what I get when I open CMD: I can't go beyond this point, I keep getting error messages. Any help...
For some unknown reason I cannot any more navigate to Update panel from "Einstellungen" - it is blocked. I have to cancel the "Einstellungen" window by the task manager ! So in this moment I cant go forward nor backward any more: cant...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:57.
Find Us