Can you delete wake timers from the command prompt?


  1. Posts : 275
    Windows 10
       #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 Computer


  2. Posts : 3
    Windows 10
       #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 Computer


  3. Posts : 14
    Windows 10
       #3

    ricecrispies said:
    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:
    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 Computer


  4. Posts : 275
    Windows 10
    Thread Starter
       #4

    Gunstar said:
    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 Computer


  5. Posts : 14
    Windows 10
       #5

    ricecrispies said:
    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 Computer


  6. Posts : 3
    Windows 10
       #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 Computer


  7. Posts : 275
    Windows 10
    Thread Starter
       #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 Computer


  8. Posts : 14
    Windows 10
       #8

    voldemarz said:
    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:
    (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 Computer


  9. Posts : 3
    Windows 10
       #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 Computer


  10. Posts : 275
    Windows 10
    Thread Starter
       #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 Computer


 

  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 11:18.
Find Us




Windows 10 Forums