Solved Question about Windows Power Plan


rezpower

Well-known member
Member
VIP
Local time
2:58 AM
Posts
184
OS
Windows 11 PRO
I have a gaming laptop that I use also for Audio production. The laptop with it's original settings had some latency problems which would cause pops and clicks when recording real time audio in DAW. I created a power plan with tweaks (High performance) and when using this power plan my latency falls to very low numbers and all problems are solved. btw the power plan is visible in "Control Panel\Hardware and Sound\Power Options" but not directly from right click on battery icon on task manager or the modern windows 11 settings menu.

Here is my question:
1- Is there a way to associate this power plan to a software (My audio Daw) and have it enabled each time that software is running and go back to original plan when I close the software?
Or
2-My PC has keyboard shortcuts (FN+G) to switch to High performance, Balanced and quiet mode) ..could this plan also be added to a keyboard shortcut?

3- if non of these options are possible, how can I have a shortcut or script on desktop to switch to and from the main Balanced and Audio plans?
 

My Computer

System One

  • OS
    Windows 11 PRO
    Computer type
    Laptop
    Manufacturer/Model
    Razer Blade 17
    CPU
    Intel i7-12800H
    Memory
    32 GB DDR5 4800 MHz dual-channel
    Graphics Card(s)
    NVIDIA® GeForce RTX™ 3080 Ti
    Sound Card
    Steinberg UR44
    Hard Drives
    1 TB SSD (M.2 NVMe PCIe 4.0 x4
    Browser
    Firefox
    Antivirus
    Windows Defender + Malwarebytes
powercfg will switch your active plan to any one of the existing profiles (including custom plans).

C:\Windows\system32>powercfg /list

Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced) *
Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance)
Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)

This script switches to High Performance plan, then back to whatever plan was running before.
Code:
@echo off
for /f "tokens=4 delims= " %%f in ('powercfg /getactivescheme') do (
  set ACTIVE_SCHEME=%%f
)

powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
C:\MyAudio\app.exe
powercfg /setactive %ACTIVE_SCHEME%
 

My Computer

System One

  • OS
    Windows 7
Hello, :alien:

If you like, the tutorial below can add a context menu to make it easy to switch between power plans as needed.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
powercfg will switch your active plan to any one of the existing profiles (including custom plans).

C:\Windows\system32>powercfg /list

Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced) *
Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance)
Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)

This script switches to High Performance plan, then back to whatever plan was running before.
Code:
@echo off
for /f "tokens=4 delims= " %%f in ('powercfg /getactivescheme') do (
  set ACTIVE_SCHEME=%%f
)

powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
C:\MyAudio\app.exe
powercfg /setactive %ACTIVE_SCHEME%
Thanks a lot for your help and your reply. This solution would be excellent. Unfortunately I have zero knowledge on how to make scripts! I pated this in Windows powerShell ISE, but it gives me errors and I am not able to create the script. Could you please help me figure out how to make and use this script or just make the script for me?
The power plan I want to use is: 356b6bc7-b22c-48a5-87e1-6f8cf9ba9592 (Legion Audio Performance)
and the Software I want to use this power plan with is: C:\Program Files\PreSonus\Studio One 6\Studio One.exe
Hello, :alien:

If you like, the tutorial below can add a context menu to make it easy to switch between power plans as needed.

Thanks a lot Brink. This worked perfect :)
 

My Computer

System One

  • OS
    Windows 11 PRO
    Computer type
    Laptop
    Manufacturer/Model
    Razer Blade 17
    CPU
    Intel i7-12800H
    Memory
    32 GB DDR5 4800 MHz dual-channel
    Graphics Card(s)
    NVIDIA® GeForce RTX™ 3080 Ti
    Sound Card
    Steinberg UR44
    Hard Drives
    1 TB SSD (M.2 NVMe PCIe 4.0 x4
    Browser
    Firefox
    Antivirus
    Windows Defender + Malwarebytes
You're most welcome. I'm glad it could help.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Script is plain old .BAT file. PS has no specific commands for power plans, so there's no advantage using it.

switchplan.bat
Code:
@echo off
for /f "tokens=4 delims= " %%f in ('powercfg /getactivescheme') do (
  set ACTIVE_SCHEME=%%f
)

powercfg /setactive 356b6bc7-b22c-48a5-87e1-6f8cf9ba9592
C:\Program Files\PreSonus\Studio One 6\Studio One.exe
powercfg /setactive %ACTIVE_SCHEME%

If you want to backup your power plan (to preserve it if you reinstall Windows), export it with:
powercfg /export C:\Users\rezpower\Legion.pow 356b6bc7-b22c-48a5-87e1-6f8cf9ba9592
powercfg /import C:\Users\rezpower\Legion.pow
 

My Computer

System One

  • OS
    Windows 7
Script is plain old .BAT file. PS has no specific commands for power plans, so there's no advantage using it.

switchplan.bat
Code:
@echo off
for /f "tokens=4 delims= " %%f in ('powercfg /getactivescheme') do (
  set ACTIVE_SCHEME=%%f
)

powercfg /setactive 356b6bc7-b22c-48a5-87e1-6f8cf9ba9592
C:\Program Files\PreSonus\Studio One 6\Studio One.exe
powercfg /setactive %ACTIVE_SCHEME%

If you want to backup your power plan (to preserve it if you reinstall Windows), export it with:
Thanks a lot garlin. This is what I did at first. I ran the script as a bat file and nothing happened. So I thought maybe I should do something else! I tried to run it again now and it still did not work. After scratching my head a little I realized that "Quotation marks" were missing for the application path as there are spaces between folder names and app name! After adding the Quotation marks the script is working perfect :)
"C:\Program Files\PreSonus\Studio One 6\Studio One.exe"
(y):clap::clap: Thanks a lot for your precious help :) This is exactly what I needed!

Edit: This should be added to guides section: How to run an Application with specific power plan!
 
Last edited:

My Computer

System One

  • OS
    Windows 11 PRO
    Computer type
    Laptop
    Manufacturer/Model
    Razer Blade 17
    CPU
    Intel i7-12800H
    Memory
    32 GB DDR5 4800 MHz dual-channel
    Graphics Card(s)
    NVIDIA® GeForce RTX™ 3080 Ti
    Sound Card
    Steinberg UR44
    Hard Drives
    1 TB SSD (M.2 NVMe PCIe 4.0 x4
    Browser
    Firefox
    Antivirus
    Windows Defender + Malwarebytes
Back
Top Bottom