Enable or Disable Wake Timers in Windows 10  

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #10

    Thank you both.

    I performed Option 2 from the Tutorial and it didn't work.

    I then performed this . . .

    Enable or Disable Wake Timers in Windows 10-image.png

    I will report back!

    Both the Keyboard & Mouse are wired!
      My Computer


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #11

    UPDATE:

    Making the amendments above It didn't restart immediately etc.
    I changed the computer time a couple of times to about 23:00pm and left it fo an hour or so, it didn't restart.
    As I use either my mouse or keyboard to wake the Desktop up, I changed the Keyboard & Mouse back to their original settings, just leaving the Ethernet amended.

    So far it seems to be OK!
      My Computer


  3. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #12

      My Computers


  4. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #13

    Brink said:
    Thanks @Brink, if only everything was that easy!
      My Computer


  5. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #14

    Hello @Brink,

    Over the last few months I have been asked about wake timers a lot. Therefore, I thought I would put a script together that includes ALL the options as per the Tutorial and post it here for everyone to have access to.

    If you think it will be useful, then by all means add it to your Tutorial.

    Code:
    @echo off
    :: ######################################################################################################
    :: # Title     : Enable Or Disable Allow Wake Timers                                                    #
    :: # Created By: Paul Black at TenForums.com/members/paul-black.html                                    #
    :: # Created In: October 2020                                                                           #
    :: # Tutorial  : https://www.tenforums.com/tutorials/63070-enable-disable-wake-timers-windows-10-a.html #
    :: ######################################################################################################
    title Enable Or Disable Allow Wake Timers - Written by Paul Black.
    mode con: cols=80 lines=25 & color 17
    set "params=%*"
    cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs") && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /b)
    %windir%\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || ( echo. & echo  ERROR: This Batch file MUST be run in an ELEVATED cmd prompt [ Administrator ] & echo. & echo         Right-click the Batch file and click ^<Run as administrator^>. & echo. & echo ^>Press ANY key to EXIT . . . & pause >nul & goto :Exit )
    
    :Options
    echo. & echo  ==============================================================================
            echo  Enable Or Disable Allow Wake Timers.
            echo  ==============================================================================
    echo. & echo  Options:
    echo. & echo  [0] EXIT this Program.
    echo. & echo  [1] On Battery - Enable  Allow Wake Timers.
            echo  [2] On Battery - Disable Allow Wake Timers.
            echo  [3] On Battery - Enable  Allow Important Wake Timers Only.
    echo. & echo  [4] Plugged In - Enable  Allow Wake Timers.
            echo  [5] Plugged In - Disable Allow Wake Timers.
            echo  [6] Plugged In - Enable  Allow Important Wake Timers Only.
    echo. & echo  ==============================================================================
    echo.
    
    CHOICE /N /C 0123456 /M ">Enter an Option:"
    if %errorlevel%==7 goto Desk_Imp
    if %errorlevel%==6 goto Desk_Dis
    if %errorlevel%==5 goto Desk_Ena
    if %errorlevel%==4 goto Batt_Imp
    if %errorlevel%==3 goto Batt_Dis
    if %errorlevel%==2 goto Batt_Ena
    if %errorlevel%==1 goto Exit
    goto :Options
    
    :Batt_Ena
    powercfg /SETDCVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 1
    
    :Batt_Dis
    powercfg /SETDCVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 0
    
    :Batt_Imp
    powercfg /SETDCVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 2
    
    :Desk_Ena
    powercfg /SETACVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 1
    
    :Desk_Dis
    powercfg /SETACVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 0
    
    :Desk_Imp
    powercfg /SETACVALUEINDEX SCHEME_CURRENT 238c9fa8-0aad-41ed-83f4-97be242c8f20 bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 2
    
    echo. & echo  Processing COMPLETE.
    echo. & echo ^>Press ANY key to EXIT . . . & pause >nul & goto :Exit
    :Exit
    Last edited by Paul Black; 24 Nov 2020 at 08:53.
      My Computer


  6. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #15

    Thank you @Paul Black. It has now been added as option 3 in the tutorial.

    Enable or Disable Wake Timers in Windows 10
      My Computers


  7. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #16

    Brink said:
    Thank you @Paul Black. It has now been added as option 3 in the tutorial.
    You are VERY welcome.
      My Computer


  8. Posts : 163
    Windows 10
       #17

    thanks for your answers to this post, it helped me too to clarify these unwanted wakeups
      My Computer


  9. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #18

    antonio3535 said:
    thanks for your answers to this post, it helped me too to clarify these unwanted wakeups
      My Computer


  10. Posts : 7,606
    Windows 10 Home 20H2
       #19

    This tutorial deals with "On battery" and "Plugged in", neither of which exists at my end.
    I confirm that the "Plugged in" commands also work in my case below:

    Enable or Disable Wake Timers in Windows 10-allow-wake-timers.jpg
      My Computer


 

Tutorial Categories

Enable or Disable Wake Timers in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


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




Windows 10 Forums