Is there a way to delete all wake timers that works in version 1909?

Page 1 of 2 12 LastLast

  1. Posts : 251
    Windows 10
       #1

    Is there a way to delete all wake timers that works in version 1909?


    I have a script that used to delete all wake timers, including the ones that get set anyway even when you disallow wake timers in the power settings, and I have it running as a scheduled task. Unfortunately it doesn't work anymore because I have discovered that my computer is going to wake up in the middle of the night tonight (and wake me up) and there seems to be nothing I can do about it. Is there a way to kill all wake timers that still works in version 1909?
      My Computer

  2. dalchina's Avatar
    Posts : 30,087
    Win 10 Pro (1903)
       #2

    Hi you should be able to identify wake sources either thus:

    View Wake Timers in Windows 10

    Is there a way to delete all wake timers that works in version 1909?-1.png

    or via a sleep study, and then arrange to disable them so they won't wake your PC, e.g. using powercfg options or a specific action applicable to the wake source.
      My Computers


  3. Posts : 251
    Windows 10
    Thread Starter
       #3

    Startmenuexperience is the one that I am having trouble with.

    I think the problem is that, while
    `
    Code:
    powercfg -waketimers
    catches all the wake timers,
    Code:
    Get-ScheduledTask | ? {$_ Settings.WakeTorRun}
    (which is what that script that I found a couple of years back uses) catches the Update Orchestrator wake timers, but doesn't catch the startmenuexperience ones. This means that I don't even know where to look in the Task Scheduler to find it and disable it manually. I even just ran
    Code:
    Get-ScheduledTask
    on its own and browsed through the whole list, but I couldn't find anything that looked relevant.
      My Computer

  4. dalchina's Avatar
    Posts : 30,087
    Win 10 Pro (1903)
       #4

    Thanks. I have no scheduled task related to Startmenuexperience (but I have 1903).
    (Nirsoft's Taskschedulerview is great in presenting a linear searchable list).

    You could try a sleep study as I suggested to see if that shows any more about your wake source.

    How do you know it's 'startmenuexperience'? Perhaps this is relevant:

    There is this change made in 19H1:

    The 19H1 update moves some of the UI from explorer.exe into StartMenuExperienceHost.exe
    19H1 update will separate Start Menu process from Explorer.exe. How will this affect troubleshooting UI freezes? Currently you can easily terminate and re-execute explorer.exe in Task Manager. : Windows10

    See:
    How to prevent StartMenuExperienceHost.exe waking up my PC?
    https://answers.microsoft.com/en-us/...d-312c9c44a36b
      My Computers

  5. Matthew Wai's Avatar
    Posts : 5,129
    Windows 10 Home 20H2
       #5

    ricecrispies said:
    Code:
    Get-ScheduledTask | ? {$_ Settings.WakeTorRun}
    The above produced an error at my end, while the following works:

    Get-ScheduledTask | ? {$_.Settings.WakeToRun -eq $true -and $_.State -ne "Enabled"}

    Give it a go.
      My Computer

  6. Matthew Wai's Avatar
    Posts : 5,129
    Windows 10 Home 20H2
       #6

    Try the following commands:

    powercfg -lastwake

    powercfg /devicequery wake_armed

    powercfg /devicequery wake_programmable
      My Computer

  7. Polo6RGTI's Avatar
    Posts : 800
    Windows 10 Enterprise x64 19043.928
       #7

    @ricecrispies you need PsExec to disable the scheduled task.

    Download PsExec here:
    https://docs.microsoft.com/en-us/sys...wnloads/psexec

    Code:
    psexec64 -i -d -s schtasks /change /tn "Microsoft\Windows\UpdateOrchestrator\Backup Scan" /Disable

    Is there a way to delete all wake timers that works in version 1909?-screenshot-210320009-.png
      My Computer

  8. Matthew Wai's Avatar
    Posts : 5,129
    Windows 10 Home 20H2
       #8

    ricecrispies said:
    I don't even know where to look in the Task Scheduler to find it and disable it manually.
    Try the following:
    Code:
    For /F "Tokens=1*Delims=\" %# In ('SchTasks /Query /FO List^|Find /I "startmenuexperience"')Do @SchTasks /Delete /TN "%$" /F
    It will find "startmenuexperience" and delete it.
      My Computer

  9. dalchina's Avatar
    Posts : 30,087
    Win 10 Pro (1903)
       #9

    Nirsoft's Taskschedulerview is great in presenting a linear searchable list of scheduled tasks as I mentioned above.
    Download TaskSchedulerView - MajorGeeks
      My Computers


  10. Posts : 251
    Windows 10
    Thread Starter
       #10

    Matthew Wai said:
    The above produced an error at my end, while the following works:

    Get-ScheduledTask | ? {$_.Settings.WakeToRun -eq $true -and $_.State -ne "Enabled"}

    Give it a go.
    I get:

    TaskPath TaskName State-------- -------- -----\Microsoft\Windows\InstallService\ WakeUpAndContinueUpdates Disabled\Microsoft\Windows\InstallService\ WakeUpAndScanForUpdates Disabled\Microsoft\Windows\SharedPC\ Account Cleanup Disabled\Microsoft\Windows\UpdateOrchestrator\ Reboot Disabled\Microsoft\Windows\UpdateOrchestrator\ Reboot_AC Disabled

    The startmenuexperiencehost wake timer doesn't seem to be related to any scheduled task, so it doesn't appear in this list. As far as I can see, something other than a scheduled task must be setting it.

    - - - Updated - - -

    dalchina said:
    Nirsoft's Taskschedulerview is great in presenting a linear searchable list of scheduled tasks as I mentioned above.
    Download TaskSchedulerView - MajorGeeks
    I tried this, but I still couldn't see anything that looked remotely related to the start menu. My suspicion is that the wake timer is being set by something other than a scheduled task.

    - - - Updated - - -

    Polo6RGTI said:
    @ricecrispies you need PsExec to disable the scheduled task.

    Download PsExec here:
    https://docs.microsoft.com/en-us/sys...wnloads/psexec

    Code:
    psexec64 -i -d -s schtasks /change /tn "Microsoft\Windows\UpdateOrchestrator\Backup Scan" /Disable

    Is there a way to delete all wake timers that works in version 1909?-screenshot-210320009-.png
    I don't think this particular wake timer is being set by a scheduled task. There is nothing that looks remotely related to it in my list of scheduled tasks.
      My Computer


 
Page 1 of 2 12 LastLast

  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 08:54.
Find Us




Windows 10 Forums