1.    06 Feb 2017 #1
    Join Date : Feb 2017
    Oklahome
    Posts : 1
    Win 10 64 bit

    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 22:41. Reason: fixed my problem
      My ComputerSystem Spec
  2.    06 Feb 2017 #2
    Join Date : Oct 2014
    Arnold, MD
    Posts : 29,075
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)

    Quote Originally Posted by JimO View Post
    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.

    Click image for larger version. 

Name:	2017-02-06_16h31_52.png 
Views:	14 
Size:	45.1 KB 
ID:	120140
      My ComputersSystem Spec

 


Similar Threads
Thread Forum
How to connect/disconnect to a VPN using the command line?
Hi all I have several network connections configured. There is one wifi connection which automatically connects to my WLAN, another cable based LAN connection to a NAS which is used for backups and some L2TP connection connections (used...
Network and Sharing
Solved Launch Windows Update from Command line?
Need to open windows update, but it's not where it used to be and I can't use the start button....... How can I open it?
Windows Updates and Activation
Can I turn off the UAC beep from the command line?
I am NOT asking about turning on/off UAC, just the beep. This can be manually configured through the UI 117380 I'd like to do this via a script using a command line change. Seems like this MIGHT involve "control mmsys.cpl sounds" in some way...
General Support
Solved Can't add user via command line
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...
User Accounts and Family Safety
Can restore of Win 7 be started from command line ?
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...
Installation and Upgrade
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 17:12.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums