Changing Overlay power Mode with script

Mustaffa Abu-Sedira 0 Reputation points
2025-02-02T09:38:46.71+00:00

Hi,

I want to change the overlay power mode based on time of the day without having to go to settings -> system -> power and battery -> power mode each time.

I am not able to find which command in powercfg will change the OVERLAY power mode, all the commands seem to be applicable only to the control panel power scheme settings.

I am looking for a command that I can run from cmd or powershell to set the power mode: Balanced, Best Performance, or Best Power Efficiency and then call it from a scheduled task.

Can anyone help with this?

Thanks

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. guilherme rodrigues 390 Reputation points
    2025-02-12T15:30:34.4733333+00:00

    Hi, @Mustaffa Abu-Sedira !

    Windows stores the overlay power mode setting in the registry under:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes

    The available Overlay Power Modes correspond to these registry values:

    Power Mode Registry Value
    Best Power Efficiency 1
    Balanced 2
    Best Performance 3

    You can Run PowerShell as Administrator and use one of the command:

    Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" -Name "ActiveOverlayAcPowerScheme" -Value 1

    After setting the registry value, apply the new setting by running:

    powercfg -update

    You can schedule these commands to run at specific times of the day using Task Scheduler.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.