-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPowerPlan.bat
45 lines (38 loc) · 846 Bytes
/
PowerPlan.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
title Power Plan Manager Script
set version=v1.0.0
set prefix=[Power Plan Manager]
echo -------------------------------------------------------------
echo Script 'Power Plan Manager_%version%' BY HanskiJay is running!
echo -------------------------------------------------------------
echo.
echo.
echo.
powercfg -l
echo.
echo.
echo.
:begin
set input=false
set res=false
set /p input=%prefix% Please select a valid Power Plan UUID (or enter "exit" to quit the script):
echo.
echo.
if %res%==exit (
echo %prefix% Exit Script.
pause
exit
)
if %res%==%input% (
echo %prefix% Invalid Input Message. Please retry!
goto begin
) else (
echo %prefix% Changed to UUID '%input%'.
powercfg -setactive %input%
echo %prefix% Currently Power Plan:
powercfg -getactivescheme
echo.
echo.
)
pause
exit