-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindowsFixKit.bat
More file actions
297 lines (267 loc) · 9.67 KB
/
Copy pathWindowsFixKit.bat
File metadata and controls
297 lines (267 loc) · 9.67 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
@echo off
:: ============================================================================
:: WindowsFixKit - Master One-Click Launcher
:: Target: Windows 7, 8.1, 10, 11
:: DevSparks India | https://devsparksindia.com | 9521032268
:: ============================================================================
title WindowsFixKit - System Diagnostic and Repair Toolkit
color 0B
:: Check for Administrator Privileges and Self-Elevate
net session >nul 2>&1
if %errorlevel% neq 0 (
echo.
echo =================================================================
echo [!] Administrative Privileges Required
echo Requesting User Account Control elevation...
echo =================================================================
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
exit /b
)
:: Ensure working directory is the script directory
cd /d "%~dp0"
:: Disable CMD QuickEdit Mode to prevent script freeze on mouse click
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$h=[System.IntPtr](Get-Process -Id $PID).MainWindowHandle;$m=Get-ItemProperty -Path 'HKCU:\Console' -Name 'QuickEdit' -ErrorAction SilentlyContinue;if($m.QuickEdit -eq 1){Set-ItemProperty -Path 'HKCU:\Console' -Name 'QuickEdit' -Value 0 -Force}" >nul 2>&1
:MENU
cls
echo =================================================================
echo WindowsFixKit - Windows Diagnostic and Auto-Repair
echo DevSparks India ^| https://devsparksindia.com ^| 9521032268
echo =================================================================
echo.
echo --- SYSTEM HEALTH ^& DIAGNOSTICS ---
echo [1] Full Hardware and System Health Diagnosis (Desktop HTML Report)
echo [2] Windows Update and Network Diagnostic + Auto-Fix (diagnose.ps1)
echo [3] Genuine Licensing, ESU ^& Security Baseline Audit (check_licensing_health)
echo [4] Windows Edition ^& Servicing Readiness Diagnostics (fix_edition_diagnostics)
echo [5] BSOD Crash Dump ^& BugCheck Analyzer (fix_bsod_analyzer)
echo.
echo --- CORE SUBSYSTEM ^& APPLICATION REPAIRS ---
echo [6] WMI Repository ^& Core Windows Services Repair (fix_wmi_services)
echo [7] Deep DISM Component Store ^& SFC File Repair (fix_sfc_dism_deep)
echo [8] Microsoft Office C2R ^& MSI Diagnostic / Repair (fix_office_repair)
echo [9] Windows Script Host (WSH) ^& PATH Environment Fixer (fix_wsh_environment)
echo [10] Fix Windows Update Stuck at 0%% (fix_update_stuck)
echo [11] Hardware Driver Auto-Repair ^& Catalog Scan (fix_driver_updater)
echo [12] Windows 10/11 Upgrade Rollback Resolver (fix_upgrade_rollback)
echo [13] .NET Framework ^& App Install Repair Tool (fix_dotnet_repair)
echo.
echo --- OPTIMIZATION, NETWORK ^& MAINTENANCE ---
echo [14] Safe Performance Debloat (fix_performance_debloat)
echo [15] Telemetry ^& Privacy Registry Hardener (fix_telemetry_privacy)
echo [16] Deep Junk ^& Temp Files Cleanup (%%TEMP%%, Prefetch, Recycle Bin)
echo [17] Deep RAM Cache ^& Memory Optimizer (Empty Working Sets)
echo [18] Full Network and DNS Stack Reset (fix_network_reset)
echo [19] Fix Missing Wi-Fi Adapter (fix_wifi_missing)
echo [20] Fix Missing Bluetooth Service (fix_bluetooth_missing)
echo.
echo --- SUPPORT ^& QUALITY ASSURANCE ---
echo [21] Package Diagnostic Logs ^& Share with DevSparks India (export_and_share_report)
echo [22] Run Local CI Lint and Test Check (scripts\lint-check.ps1)
echo [23] Exit
echo.
echo =================================================================
set /p CHOICE=" Select an option [1-23]: "
if "%CHOICE%"=="1" goto FULL_DIAG
if "%CHOICE%"=="2" goto WU_DIAG
if "%CHOICE%"=="3" goto LIC_DIAG
if "%CHOICE%"=="4" goto EDITION_DIAG
if "%CHOICE%"=="5" goto BSOD_FIX
if "%CHOICE%"=="6" goto WMI_FIX
if "%CHOICE%"=="7" goto SFC_DISM_DEEP
if "%CHOICE%"=="8" goto OFFICE_FIX
if "%CHOICE%"=="9" goto WSH_FIX
if "%CHOICE%"=="10" goto WU_STUCK
if "%CHOICE%"=="11" goto DRIVER_FIX
if "%CHOICE%"=="12" goto UPGRADE_FIX
if "%CHOICE%"=="13" goto DOTNET_FIX
if "%CHOICE%"=="14" goto DEBLOAT
if "%CHOICE%"=="15" goto PRIVACY
if "%CHOICE%"=="16" goto CLEANUP
if "%CHOICE%"=="17" goto RAM_CLEANUP
if "%CHOICE%"=="18" goto NET_RESET
if "%CHOICE%"=="19" goto WIFI_FIX
if "%CHOICE%"=="20" goto BT_FIX
if "%CHOICE%"=="21" goto SHARE_BUNDLE
if "%CHOICE%"=="22" goto LINT_CHECK
if "%CHOICE%"=="23" goto EXIT
echo [!] Invalid selection. Please choose 1 to 23.
timeout /t 2 >nul
goto MENU
:FULL_DIAG
cls
echo [INFO] Running Full Hardware and System Health Audit...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\full_system_diagnosis.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:WU_DIAG
cls
echo [INFO] Running Windows Update and Network Diagnostic Engine...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\diagnose.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:LIC_DIAG
cls
echo [INFO] Auditing Windows & Office Licensing Health, ESU and Security Baseline...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\diagnostics\check_licensing_health.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:EDITION_DIAG
cls
echo [INFO] Diagnosing Windows Edition Upgrade Readiness and Servicing Flags...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_edition_diagnostics.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:BSOD_FIX
cls
echo [INFO] Analyzing Windows BSOD Crash Dumps & BugChecks...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_bsod_analyzer.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:WMI_FIX
cls
echo [INFO] Repairing WMI Repository, Null Driver and Core Windows Services...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_wmi_services.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:SFC_DISM_DEEP
cls
echo [INFO] Running Deep Component Store (DISM) & SFC Repair with Log Bundler...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_sfc_dism_deep.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:OFFICE_FIX
cls
echo [INFO] Diagnosing Microsoft Office C2R / MSI Suites and Repair Options...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_office_repair.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:WSH_FIX
cls
echo [INFO] Remediating Windows Script Host (WSH) & System Environment Variables...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_wsh_environment.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:WU_STUCK
cls
echo [INFO] Remediating Windows Update Stuck at 0%% / Download Hangs...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_update_stuck.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:DRIVER_FIX
cls
echo [INFO] Scanning & Auto-Repairing Hardware Device Drivers...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_driver_updater.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:UPGRADE_FIX
cls
echo [INFO] Diagnosing Windows 10/11 Upgrade Rollbacks & Drivers...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_upgrade_rollback.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:DOTNET_FIX
cls
echo [INFO] Diagnosing .NET Framework & BadImageFormatException...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_dotnet_repair.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:DEBLOAT
cls
echo [INFO] Running Safe Performance Debloat Module...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_performance_debloat.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:PRIVACY
cls
echo [INFO] Applying Telemetry & Privacy Registry Hardening...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_telemetry_privacy.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:CLEANUP
cls
echo [INFO] Running Deep Temp, Trash & Storage Cleanup Engine...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_storage_cleanup.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:RAM_CLEANUP
cls
echo [INFO] Running Deep RAM Cache & Memory Buffer Optimizer...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_ram_cache.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:NET_RESET
cls
echo [INFO] Resetting Network Sockets, TCP/IP and DNS...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_network_reset.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:WIFI_FIX
cls
echo [INFO] Remediating Wi-Fi Adapters and WLAN Services...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_wifi_missing.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:BT_FIX
cls
echo [INFO] Remediating Bluetooth Support Services and Radios...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\fix_bluetooth_missing.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:SHARE_BUNDLE
cls
echo [INFO] Packaging Diagnostic Logs & Preparing Support Bundle...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\export_and_share_report.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:LINT_CHECK
cls
echo [INFO] Running Quality Gate and Lint Suite...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\lint-check.ps1"
echo.
echo Press any key to return to menu...
pause >nul
goto MENU
:EXIT
exit /b 0