An open API service indexing awesome lists of open source software.

https://github.com/slothy-tech/windows-power-plan-switcher

Switch power plans on Windows quickly.
https://github.com/slothy-tech/windows-power-plan-switcher

switch-power-plan-windows ultimate-power-plan windows-10 windows-11 windows-extreme-power-plan windows-power-management windows-power-plan

Last synced: about 1 year ago
JSON representation

Switch power plans on Windows quickly.

Awesome Lists containing this project

README

          

Windows Power Plan Switcher: A simple tool to switch power plans easily

Welcome to Windows Power Plan Switcher, an open-source CMD script designed to help you optimize PC performance, manage power settings, and switch power plans effortlessly. Tired of navigating through Control Panel to toggle between "High Performance" for gaming or "Power Saver" for battery life? This script simplifies it all. With a double-click, you can view and activate any power plan on your Windows system—making it a must-have power management tool for gamers, professionals, and everyday users.

This README covers everything you need to know about the script, including what it does, how to use it step-by-step, and how to troubleshoot any issues. Let’s dive in and take charge of your Windows power settings!


🚀 What Does Windows Power Plan Switcher Do?

The windows-power-plan-switcher.cmd script leverages the built-in powercfg utility to automate switching between power plans on your Windows PC. It lists all available power plans—such as "Balanced," "High Performance," and "Power Saver"—and lets you select one by number to set as active. This streamlines power management, allowing you to:



  • Enhance Performance: Switch to "High Performance" for demanding tasks like gaming or video editing.


  • Conserve Energy: Activate "Power Saver" to extend battery life on laptops.


  • Adapt Quickly: Adjust your PC’s power settings instantly to match your needs.

With this Windows power management script, you can optimize your system without the hassle of manual configuration, saving time and boosting efficiency.


🌟 Key Features



  • Interactive Menu: Displays all power plans with numbered options for easy selection.


  • Dynamic Listing: Includes both default and custom power plans available on your system.


  • Lightweight: No installation needed—just double-click to run.


  • Fast Execution: Switches plans instantly using native Windows tools.


  • User-Friendly: Requires no technical expertise to manage power settings.


🛠️ How to Use Windows Power Plan Switcher: Step-by-Step Instructions

Getting started with windows-power-plan-switcher.cmd is a breeze. Follow these clear steps to switch power plans and optimize your PC:

Step 1: Obtain the Script



  • Copy the script code provided in this project.

  • Save it as windows-power-plan-switcher.cmd using a text editor like Notepad.

  • Place it in a convenient location, such as your Desktop or a Scripts folder.

Step 2: Run the Script



  • Double-click windows-power-plan-switcher.cmd to launch it.


  • Note: Administrative privileges aren’t usually required, but if you face issues, right-click and select "Run as administrator".

Step 3: Select a Power Plan



  • When the script runs, it shows a menu of all available power plans, like this:



Available power plans:
1. Balanced
2. High Performance
3. Power Saver
Enter the number of the plan to activate:


  • Type the number corresponding to your desired plan (e.g., 2 for "High Performance") and press Enter.

Step 4: Confirm the Change



  • The script sets the chosen plan as active and confirms it, e.g., "Power plan set to High Performance."

  • Press any key to close the window when prompted.

Example Interaction


Here’s what you might see:



Available power plans:
1. Balanced
2. High Performance
3. Power Saver
Enter the number of the plan to activate: 2
Power plan set to High Performance
Press any key to continue . . .

Your PC is now optimized with the selected power plan!


🔧 Troubleshooting: Fixing Common Issues

While windows-power-plan-switcher.cmd is built for simplicity, you might encounter minor hiccups. Here’s how to fix them:

1. No Power Plans Displayed




  • Problem: The menu is empty or shows no options.


  • Fix: Open Command Prompt and run powercfg /list to verify power plans exist. If none appear, create one with powercfg /duplicatescheme 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High Performance) and retry.

2. Script Closes Too Quickly




  • Problem: The window opens and shuts immediately.


  • Fix: Launch Command Prompt, drag the script into it, and press Enter to see any errors. Ensure the script syntax is correct.

3. "Access Denied" Error




  • Problem: The script fails to change plans due to permissions.


  • Fix: Right-click and select "Run as administrator". This is rare but may happen on locked-down systems.

4. Invalid Choice Error




  • Problem: Entering a number results in "Invalid choice."


  • Fix: Confirm you entered a valid number within the displayed range (e.g., 1-3 for three plans). Retype and press Enter carefully.

5. Plan Doesn’t Switch




  • Problem: Confirmation appears, but the plan doesn’t change.


  • Fix: Check Control Panel > Power Options to verify. Rerun as administrator or ensure no group policies restrict power settings.

For more help, search online forums for Windows power management tips.


⚠️ Important Usage Notes



  • System Compatibility: Works on Windows 7, 8, 10, and 11 with powercfg (included by default).


  • Permissions: Usually runs without admin rights, but use elevated mode if needed.


  • Custom Plans: Supports all power plans, including user-defined ones.


💡 Why Switch Power Plans?

Power plans dictate how your PC balances performance and energy use. Using windows-power-plan-switcher.cmd offers these advantages:



  • Maximize Gaming: "High Performance" unleashes full CPU and GPU power for smoother gameplay.


  • Extend Battery: "Power Saver" minimizes energy use for longer laptop sessions.


  • Instant Flexibility: Switch plans without navigating complex menus.

This power management script is perfect for anyone seeking to optimize their Windows PC quickly and efficiently.


🛠️ Customize the Script

Want to tweak windows-power-plan-switcher.cmd? Here’s how to modify it:


  1. Open the script in a text editor like Notepad.

  2. For automatic switching, replace set /p CHOICE=... with a fixed value, e.g., set CHOICE=2, to always select "High Performance."

  3. Remove pause for silent execution:



@echo off
setlocal enabledelayedexpansion
echo Available power plans:
set counter=0
for /f "tokens=4,*" %%a in ('powercfg /list ^| findstr /v "Existing"') do (
set /a counter+=1
set GUID!counter!=%%a
set NAME=%%b
set NAME=!NAME:~1,-1!
set NAME!counter!=!NAME!
echo !counter!. !NAME!
)
set CHOICE=2
if defined GUID%CHOICE% (
powercfg /setactive !GUID%CHOICE%!
echo Power plan set to !NAME%CHOICE%!
) else (
echo Invalid choice.
)

Save and run—it’ll switch to "High Performance" silently each time!


🎉 Get Started Today!

Ready to optimize your Windows PC? Use windows-power-plan-switcher.cmd now and enjoy seamless power plan management. It’s open-source—feel free to contribute, suggest improvements, or share feedback!

Download Now


Created by SlothyTech
Your go-to source for PC optimization and gaming guides.