Win 10 home 64 bit command line Sleep command


  1. Posts : 1
    Win 10 64 bit
       #1

    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 administrator
    Does anyone know of a bettercommand to put the computer to sleep?
    %windir%\System32\rundll32.exepowrprof.dll,SetSuspendState Standby
    %windir%\System32\rundll32.exepowrprof.dll, SetSuspendState Standby
    C:\Windows\System32\rundll32.exePowrprof.dll,SetSuspendState Sleep 0,1,0
    C:\Windows\System32\rundll32.exe Powrprof.dll, SetSuspendStateSleep 0,1,0
    Doyou know of a better command to put the computer to sleep

    I downloaded psshutdown
    C:\Windows\psshutdown.exe -d -t xx xx= number of sec till sleep
    Last edited by JimO; 07 Feb 2017 at 21:41. Reason: fixed my problem
      My Computer

  2. f14tomcat's Avatar
    Posts : 53,591
    Multi-boot Windows 10 - RTM, RP, Beta, and Insider
       #2

    JimO said:
    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 administrator
    Does anyone know of a bettercommand to put the computer to sleep?
    %windir%\System32\rundll32.exepowrprof.dll,SetSuspendState Standby
    %windir%\System32\rundll32.exepowrprof.dll, SetSuspendState Standby
    C:\Windows\System32\rundll32.exePowrprof.dll,SetSuspendState Sleep 0,1,0
    C:\Windows\System32\rundll32.exe Powrprof.dll, SetSuspendStateSleep 0,1,0
    Doyou know of a better command to put the computer to sleep
    The first one simply turns Hibernation off, disables Fast Startup, and deletes the system file hiberfil.sys. I'm not aware of connection with Sleep or waking up on a trigger. I have these settings, as stated, on my machine, and I can still put it to sleep and wake it up. I'm not familiar with the last four at all, although sleep states are usually (I think) set in the BIOS. Whatever is set there is available in the OS. S0-S4, I think. Maybe S5.

    A little more info here: NO Hibernation just SLEEP

    Also, you might want to check your advanced power plan settings to see if you have enabled wake timers.

    Win 10 home 64 bit  command line Sleep command-2017-02-06_16h31_52.png
      My Computers


 

  Related Discussions
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 02:18.
Find Us




Windows 10 Forums