Windows 10: Can you delete wake timers from the command prompt?

  1.    23 Sep 2015 #1

    Can you delete wake timers from the command prompt?


    Can you delete wake timers from the command prompt? I am thinking specifically of wake timers created by Update Orchestrator, which cannot be permanently disabled no matter how many settings you alter (and believe me, I have spent hours and days trying to permanently stop my machine being woken from sleep by this nonsense).

    At the moment all I can do is run powercfg -waketimers from an admin prompt before every time I put the machine to sleep, and if I spot a wake timer I then have to rummage around in the task scheduler to find the offending timer and turn off waking yet again for the zillionth time. Ideally I would like to automate this so I can just put the machine to sleep at the touch of a button as if I were dealing with a user-friendly operating system.
      My ComputerSystem Spec

  2.    23 Sep 2015 #2

    I would like to know this as well. I have Wake Timers disabled in Windows 10, but PC keeps waking up from timers.
      My ComputerSystem Spec

  3.    24 Sep 2015 #3

    ricecrispies said: View Post
    Can you delete wake timers from the command prompt? I am thinking specifically of wake timers created by Update Orchestrator, which cannot be permanently disabled no matter how many settings you alter (and believe me, I have spent hours and days trying to permanently stop my machine being woken from sleep by this nonsense).

    At the moment all I can do is run powercfg -waketimers from an admin prompt before every time I put the machine to sleep, and if I spot a wake timer I then have to rummage around in the task scheduler to find the offending timer and turn off waking yet again for the zillionth time. Ideally I would like to automate this so I can just put the machine to sleep at the touch of a button as if I were dealing with a user-friendly operating system.
    voldemarz said: View Post
    I would like to know this as well. I have Wake Timers disabled in Windows 10, but PC keeps waking up from timers.
    Try run CM, then

    sc stop "UsoSvc"
    sc config "UsoSvc" start= disabled


    if that doesn't work visit:

    Library>Microsoft>Windows>UpdateOrchestrator.
    Then right-click on the Reboot and select Properties, then click on Conditions , then untick the Wake the computer checkbox then hit OK.
      My ComputerSystem Spec

  4.    24 Sep 2015 #4

    Gunstar said: View Post
    Try run CM, then

    sc stop "UsoSvc"
    sc config "UsoSvc" start= disabled

    If I understand correctly, that would disable the update orchestrator altogether, which is not what I want because I don't want to miss out on security updates. Is there a way to have automatic updates when my machine is on, but only disable the wake timers?
      My ComputerSystem Spec

  5.    24 Sep 2015 #5

    ricecrispies said: View Post
    If I understand correctly, that would disable the update orchestrator altogether, which is not what I want because I don't want to miss out on security updates. Is there a way to have automatic updates when my machine is on, but only disable the wake timers?
    Unless you could code up a batch file probably not. (from my experience)
      My ComputerSystem Spec

  6.    24 Sep 2015 #6

    Library>Microsoft>Windows>UpdateOrchestrator.
    Then right-click on the Reboot and select Properties, then click on Conditions , then untick the Wake the computer checkbox then hit OK.
    I have done that, but somehow wake timer still gets scheduled. As I said I have disabled wake timers for all power plans, so it shouldn't even be possible. Annoyingly, the new version of Spotify (1.0.14.124.g4dfabc51) also creates timers, very frequent ones, causing PC to constantly wake up...
    Code:
    C:\Windows\system32>powercfg -waketimers
    Timer set by [PROCESS] \Device\HarddiskVolume3\Users\valdis\AppData\Roaming\Spotify\Spotify.exe expires at 20:45:44 on 24.09.2015.
      Reason: generic
      My ComputerSystem Spec

  7.    24 Sep 2015 #7

    (Reply to Gunstar)
    Thanks for helping me with this. I think it's becoming a tiny bit clearer.

    Are you implying that I might be able to have a batch file run the two commands you have suggested as a scheduled task when the machine sleeps or hibernates, and then presumably have another batch file do the reverse when the machine wakes? I'm familiar with having scripts run on sleeping and waking in Linux, but I'm not so familiar with how these things work in Windows.
    Last edited by ricecrispies; 24 Sep 2015 at 15:09. Reason: avoid confusion
      My ComputerSystem Spec

  8.    24 Sep 2015 #8

    voldemarz said: View Post
    I have done that, but somehow wake timer still gets scheduled. As I said I have disabled wake timers for all power plans, so it shouldn't even be possible. Annoyingly, the new version of Spotify (1.0.14.124.g4dfabc51) also creates timers, very frequent ones, causing PC to constantly wake up...
    Code:
    C:\Windows\system32>powercfg -waketimers
    Timer set by [PROCESS]  \Device\HarddiskVolume3\Users\valdis\AppData\Roaming\Spotify\Spotify.exe  expires at 20:45:44 on 24.09.2015.
      Reason: generic
    Yeah that was one I had trouble with. The current "fix" is close Spotify before you put your machine to sleep. It will stay asleep as long as Spotify is closed!


    ricecrispies said: View Post
    (Reply to Gunstar)
    Thanks for helping me with this. I think it's becoming a tiny bit clearer.

    Are you implying that I might be able to have a batch file run the two commands you have suggested as a scheduled task when the machine sleeps or hibernates, and then presumably have another batch file do the reverse when the machine wakes? I'm familiar with having scripts run on sleeping and waking in Linux, but I'm not so familiar with how these things work in Windows.
    Yeah exactly that. Not sure how to implement though sorry
      My ComputerSystem Spec

  9.    24 Sep 2015 #9

    In answers of a question on superuser.com is a powershell script for disabling wake ability for all scheduled tasks. It is scheduled to run every 30 minutes, that should take care of UpdateOrchestrator, unless you put PC to sleep right after updates have installed when wake toggle gets reenabled and before powershell script gets a chance to execute.
      My ComputerSystem Spec

  10.    24 Sep 2015 #10

    Could the scheduled task be modified to run the script on lock? I'm assuming that this would include the locking that happens before sleep and hibernate. I'm looking at the instructions here for clues about how to do this in Windows 10. I don't have time to try it out right now unfortunately.
      My ComputerSystem Spec


 

Related Threads
Anyone figured out a use for the Opacity setting for Command Prompt on the Experimental tab? I've tried it at many different settings and I just can't see a use for it.
Solved Command Prompt in General Support
How to call up "command Prompt (Admin) from the "run" dialog box win 10 Home?
Command Prompt? in General Support
Guys, I'm going to try one last time. The error code I received told to me to empty files and then "Run the command prompt as an administrator"?? Then, type wuauclt.exe/update now??......I don't know what run the command prompt means. I have no...
command prompt problem in Software and Apps
Hi guys the opacity slider it's gray Please, what is the solution http://i.imgur.com/cDhZEmp.jpg
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 22:07.
Find Us