@echo off
:MENU
cls
echo ================================
echo    System Maintenance Menu
echo ================================
echo 1. Run SFC /scannow
echo 2. Run DISM
echo 3. Disk Cleanup
echo 4. Delete SoftwareDistribution Downloads
echo 5. Delete Temp Files
echo 6. Show System Info
echo 7. Battery Report
echo 9. Exit
echo ================================
set /p option=Choose an option (1-7):

if "%option%"=="1" goto SFC
if "%option%"=="2" goto DISM
if "%option%"=="3" goto DISK_CLEANUP
if "%option%"=="4" goto DELETE_SOFTWAREDISTRIBUTION
if "%option%"=="5" goto DELETE_TEMP_FILES
if "%option%"=="6" goto SYSTEM_INFO
if "%option%"=="7" goto BATTERY_REPORT
if "%option%"=="9" goto EXIT

:SFC
echo Running SFC /scannow...
sfc /scannow
pause
goto MENU

:DISM
echo Running DISM...
dism /online /cleanup-image /restorehealth
pause
goto MENU

:DISK_CLEANUP
echo Launching Disk Cleanup...
cleanmgr
pause
goto MENU

:DELETE_SOFTWAREDISTRIBUTION
echo Deleting SoftwareDistribution Downloads...
:: Stop Windows Update service
net stop wuauserv
:: Delete the SoftwareDistribution folder contents
del /q /f /s %windir%\SoftwareDistribution\Download\*
:: Restart Windows Update service
net start wuauserv
echo Done.
pause
goto MENU

:DELETE_TEMP_FILES
echo Deleting Temp Files...
:: Delete temporary files
del /q /f /s %temp%\*
del /q /f /s C:\Windows\Temp\*
echo Done.
pause
goto MENU

:SYSTEM_INFO
echo Gathering system information...
echo.

:: System Info
echo System Version:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"

:: RAM Information
echo.
wmic memorychip get capacity

:: Disk Space Information
echo.
wmic logicaldisk get size,freespace,caption

:: BIOS Version
echo.
wmic bios get smbiosbiosversion

:: Windows Activation Key
echo.
powershell -Command "Get-WmiObject -Query 'select * from SoftwareLicensingService' | Select-Object -Property OA3xOriginalProductKey"

echo Done.
pause
goto MENU

:BATTERY_REPORT
echo.
powercfg /batteryreport
echo Done.
pause
goto MENU

:EXIT
echo Exiting...
exit
