Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

[EPT] Powerplan Switcher


Introduction
As requested by ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ I'm gonna "showcase" something a little more useful this time, compared to my Totally Accurate Deep Web Simulator. This time I got the Powerplan Switcher.

The Software
I'd like to start out by clarifying, that this Batch script won't work on all computers. Some computers have a High Performance mode, some don't, some computers named it something different. I made this script with my own computer in mind, which is why it has the two settings; Balanced and High Performance.
Now, with that out of the way, lets get to the meaning of this thing. It is, like the name suggests, a simple Batch file for switching power plans. On Windows 10, I find it quite annoying, how hidden the actual power plan settings are, so I decided to make this instead, much faster! (Spoiler: This is intended for lazy people like myself XD)

The Source Code
Well, once again, I've decided to post the source code, so you can have a good look at what it actually does. And I, like the last post, ask that you do not take credit for this exact file! (If you use the commands in your own scripts it's totally fine, just don't copy my stuff...)


Code
@echo off
:home
cls
echo Made by EP Team member Decay
echo.
echo Current powerplan:
powercfg.exe /getactivescheme
echo.
echo.
echo Choose a powerplan to switch to:
echo 1. Balanced
echo 2. High performance
echo 3. Exit
echo.
set /p ch=:
if %ch%==1 goto balanced
if %ch%==2 goto high_performance
if %ch%==3 goto exit
cls
echo Invalid input
timeout /nobreak /t 2 >nul
goto home

:balanced
powercfg.exe /setactive 381b4222-f694-41f0-9685-ff5bb260df2e
echo.
echo Success
timeout /nobreak /t 1 >nul
goto home

:high_performance
powercfg.exe /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
echo.
echo Success
timeout /nobreak /t 1 >nul
goto home


Using the File
Using the code is as easy as copying it, pasting it and saving it as a Batch file. If you want to customize it to your computers specific settings, all you have to do is use the following command:

Code
powercfg.exe /L

Then just copy the GUID of the power plan you would like to use, and insert it into the script instead of my default values. It's as easy as that!

QTDWBA (Questions That Definitely Will Be Asked)
Did you steal this from "EPT Member Decay"?
In case you didn't know, or didn't read my last thread, I am EPT Member Decay.

Are you really so lazy, that you made a Batch script to change power plans for you?
Indeed I am!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by ROU001May 5, 2021 03:11 PM 7 246 May 5, 2021 03:11 PM
Last Post: vegaoceansoda
[Shell] by BeigevenusApr 22, 2017 01:49 PM 4 239 Apr 22, 2017 01:49 PM
Last Post: Beigevenus
[Shell] by BeigevenusApr 14, 2017 04:48 PM 10 484 Apr 14, 2017 04:48 PM
Last Post: Beigevenus