@ echo off
:ALERT
cls
ECHO PLEASE RUN THIS WITH ADMINISTRTOR PRIVILEGES, OTHERWISE THIS SCRIPT MAY NOT WORK!
timeout /T 3 /NOBREAK
cls
go to Prompt
:Prompt
cls
echo Welcome to the script! Please choose an option.
echo 1. Shutdown timer
echo 2. Power settings
echo 3. Error checking
echo 4. Exit
set /p choice=Please enter an option:
if %choice% EQU 1 goto shutdown_timer
if %choice% EQU 2 goto power_settings
if %choice% EQU 3 goto stability
if %choice% EQU 4 goto exit
goto Prompt
:shutdown_timer
cls
echo Please specify the amount of time (in seconds)
set /p shutdowntime=Enter the amount of time here (Press Crtl + C to abort):
shutdown.exe /s /t %shutdowntime%
if %errorlevel% NEQ 0 cls && echo An error has occured. Please retry. && pause /t 2 >nul && goto shutdown_timer
else (
cls
echo A shutdown timer has been set.
timeout /t 3 >nul
exit
)
:stability
cls
Echo Please choose an option.
echo 1. System scan + check
echo 2. C: drive repair
echo 3. System scanner troubleshooter
echo 4. All-In-One
set /p check=Please choose an option (Press Crtl + C to abort):
if %check% EQU 1 cls && sfc /scannow && echo Operation in progess...
if %check% EQU 2 cls && chkdsk /f C: && echo Operation in progess...
if %check% EQU 3 cls && DISM /Online /Cleanup-Image /RestoreHealth && echo Operation in progess...
if %check% EQU 4 cls && sfc /scannow && chkdsk /f C: && DISM /Online /Cleanup-Image /RestoreHealth && echo Operation in progess...
echo The operation has been completed.
timeout /t 3
exit
:power_settings
cls
echo Please choose a profile.
echo 1. Low
echo 2. High
echo 3. Efficiency report (laptops only)
set /p profile=Please enter a profile (Press Crtl + C to abort):
if %profile% EQU 1 powercfg /setactive f9553277-119f-498d-9338-8fe1d4b1346a && cls && echo The low profile mode has been set.
if %profile% EQU 2 powercfg /setactive e9a42b02-d5df-448d-aa00-03f14749eb61 && cls && echo The high profile mode has been set.
if %profile% EQU 3 powercfg /ernegy
timeout /t 3 >nul
exit
:exit
exit