-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFixWin
64 lines (60 loc) · 1.32 KB
/
FixWin
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
cls
color 0a
:menu
cls
echo ====================================
echo Welcome to FixWin
echo ====================================
echo.
echo 1. Display system information
echo 2. Run System File Checker (sfc /scannow)
echo 3. Check Image Health (DISM)
echo 4. Exit
echo.
set /p choice=Enter your choice (1-4):
if "%choice%"=="1" (
echo.
echo System Information:
echo -------------------
systeminfo | find "OS Name"
systeminfo | find "OS Version"
systeminfo | find "System Manufacturer"
systeminfo | find "System Model"
systeminfo | find "Total Physical Memory"
echo.
pause
goto :menu
) else if "%choice%"=="2" (
echo.
echo Running System File Checker (sfc /scannow)...
echo.
sfc /scannow
echo.
pause
goto :menu
) else if "%choice%"=="3" (
echo.
echo Checking Image Health (DISM)...
echo.
DISM /Online /Cleanup-Image /CheckHealth
echo.
DISM /Online /Cleanup-Image /ScanHealth
echo.
DISM /Online /Cleanup-Image /RestoreHealth
echo.
pause
goto :menu
) else if "%choice%"=="4" (
echo.
echo Exiting...
echo.
pause
exit
) else (
echo.
echo Invalid choice! Please enter a number between 1 and 4.
echo.
pause
goto :menu
)