-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathQuickBoostv3.bat
More file actions
148 lines (121 loc) · 6.68 KB
/
QuickBoostv3.bat
File metadata and controls
148 lines (121 loc) · 6.68 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
@echo off
setlocal EnableDelayedExpansion
:: Check for admin rights
NET SESSION >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo This script requires administrator privileges.
echo Please run this script as an administrator.
pause
exit /b 1
)
echo Windows 10/11 Optimization Script
echo ================================
echo.
echo This script will optimize your Windows system for better performance.
echo It will disable some services and features while preserving essential functionality.
echo.
echo IMPORTANT: Please read through the script and understand what it does before running.
echo It's recommended to create a system restore point before proceeding.
echo.
pause
:: Disable unnecessary services
echo Disabling unnecessary services...
for %%s in (
DiagTrack dmwappushservice MapsBroker PcaSvc RemoteRegistry RetailDemo TrkWks
WerSvc XblAuthManager XblGameSave XboxNetApiSvc WSearch WMPNetworkSvc W32Time
CDPSvc CDPUserSvc lfsvc geolocation SysMain wuauserv
) do (
sc config %%s start= disabled
sc stop %%s
)
:: Disable unnecessary scheduled tasks
echo Disabling unnecessary scheduled tasks...
schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE
schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE
schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /DISABLE
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /DISABLE
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /DISABLE
schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /DISABLE
schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /DISABLE
schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /DISABLE
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /DISABLE
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /DISABLE
:: Ensure essential services remain enabled
echo Ensuring essential services remain enabled...
for %%s in (spooler fdphost fdrespub LanmanServer LanmanWorkstation) do (
sc config %%s start= auto
sc start %%s
)
:: Disable telemetry and other features
echo Disabling telemetry and other features...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableSoftLanding /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v LetAppsRunInBackground /t REG_DWORD /d 2 /f
reg add "HKEY_CURRENT_USER\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowGameDVR /t REG_DWORD /d 0 /f
:: Optimize visual settings
echo Optimizing visual settings...
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v VisualFXSetting /t REG_DWORD /d 2 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ListviewAlphaSelect /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarAnimations /t REG_DWORD /d 0 /f
reg add "HKCU\Control Panel\Desktop" /v MenuShowDelay /t REG_SZ /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v EnableTransparency /t REG_DWORD /d 0 /f
:: Optimize system settings
echo Optimizing system settings...
powercfg /h off
powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v ServicesPipeTimeout /t REG_DWORD /d 3000 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v NoLockScreen /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f
:: Clean up temp files
echo Cleaning up temporary files...
del /q/f/s %TEMP%\*
del /q/f/s C:\Windows\Temp\*
:: Optimize SSD if present
echo Optimizing SSD if present...
for /f "tokens=2 delims==" %%a in ('wmic logicaldisk where "DriveType=3" get DeviceID /value') do (
fsutil behavior set DisableLastAccess 1 %%a
fsutil behavior set EncryptPagingFile 0 %%a
)
:: Performance Tweaks - Customize your options
rem Set the power plan to "High Performance"
powercfg /setactive "High Performance"
rem Disable dynamic frequency scaling (if desired)
powercfg /setacvalueindex SCHEME_GLOBAL 5738 0
rem Set minimum processor state to 100%
powercfg /setacvalueindex SCHEME_GLOBAL 5720 100
rem Set maximum processor state to 100%
powercfg /setacvalueindex SCHEME_GLOBAL 5724 100
rem Disable adaptive brightness (if applicable)
powercfg /setacvalueindex SCHEME_GLOBAL 5704 0
rem Disable automatic dimming (if applicable)
powercfg /setacvalueindex SCHEME_GLOBAL 5706 0
rem Disable hibernation (if desired)
powercfg /hibernate off
rem Disable hybrid sleep (if desired)
powercfg /hibernate off
rem Set hard disk idle timeout to 0 seconds
powercfg /setacvalueindex SCHEME_GLOBAL 5728 0
rem Set hard disk spin-down timeout to 0 seconds
powercfg /setacvalueindex SCHEME_GLOBAL 5730 0
rem Set PCI Express link state power management to 0 (performance mode)
powercfg /setacvalueindex SCHEME_GLOBAL 5740 0
rem Set USB selective suspend timeout to 0 seconds
powercfg /setacvalueindex SCHEME_GLOBAL 5742 0
rem CPU Parking tweaks
powercfg /setacvalueindex SCHEME_GLOBAL 5741 0
powercfg /setacvalueindex SCHEME_GLOBAL 5743 0
rem BCEdit tweaks (modify as needed)
bcdedit /set processorcores 8 (CHECK THIS NUMBER github.com/rahilpathan)
bcdedit /set numprocthreads 16 (CHECK THIS NUMBER github.com/rahilpathan)
rem Other potential tweaks (explore and adjust as needed)
powercfg /setacvalueindex SCHEME_GLOBAL 5708 0 (disable idle timers)
powercfg /setacvalueindex SCHEME_GLOBAL 5716 0 (disable PCI Express bus mastering)
powercfg /setacvalueindex SCHEME_GLOBAL 5718 0 (disable PCI Express link state power management)
echo Enhanced system optimization complete. Some changes require a reboot to take effect.
echo Please review the changes and reboot your system when ready.
pause