├── .github └── FUNDING.yml ├── FastTweak-v1.2.cmd ├── LICENSE ├── README.md └── screenshot.jpg /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: ['https://github.com/DosX-dev/DosX-dev/blob/main/donate.md'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /FastTweak-v1.2.cmd: -------------------------------------------------------------------------------- 1 | :: https://github.com/DosX-dev/FastTweak 2 | 3 | @set no-output-attribute=^>nul 2^>^&1 4 | 5 | @echo off 6 | title FastTweak (version 1.2) ^| ARCH: %PROCESSOR_ARCHITECTURE% 7 | mode con:cols=100 lines=20 8 | color 1f 9 | 10 | reg query "HKU\S-1-5-19" %no-output-attribute% 11 | if %errorlevel% equ 1 goto UACPrompt 12 | 13 | call :colored 0 0 " " 14 | 15 | call :colored 0 0 " " 16 | call :colored 8 f " " 17 | call :colored 0 0 " " 18 | 19 | :: ; 20 | call :colored 0 0 " " 21 | call :colored 0 f " FAST-TWEAK UTILITY " 22 | call :colored 0 0 " " 23 | 24 | call :colored 0 0 " " 25 | call :colored 8 f " https://github.com/DosX-dev/FastTweak " 26 | call :colored 0 0 " " 27 | 28 | call :colored 0 0 " " 29 | call :colored 8 f " " 30 | call :colored 0 0 " " 31 | 32 | call :colored 0 0 " " 33 | 34 | echo. 35 | timeout 1 /nobreak %no-output-attribute% 36 | call :colored 0 1 " " 37 | call :colored 0 9 " CURRENT WORKSTATION " 38 | call :colored 0 1 " " 39 | call :colored e 1 "%computername%" 40 | 41 | call :sizeof computername 42 | set /a size_of_computername=%errorlevel% 43 | set /a to_draw=23-size_of_computername 44 | 45 | for /l %%t in (1, 1, %to_draw%) do ( 46 | call :colored 0 1 " " 47 | ) 48 | 49 | call :colored 0 1 " " 50 | call :colored 0 9 " STARTED BY USER " 51 | call :colored 0 1 " " 52 | call :colored e 1 "%username%" 53 | 54 | echo. 55 | echo. 56 | 57 | 58 | call :log "Configuring services..." 59 | ( 60 | sc config WSearch start= auto 61 | sc config AppIDSvc start= auto 62 | sc config UserManager start= auto 63 | sc config StateRepositorySvc start= auto 64 | sc config TileDataModelSvc start= auto 65 | sc config WpnService start= auto 66 | sc config BrokerInfrastructure start= auto 67 | ) %no-output-attribute% 68 | 69 | call :log "Enabling PowerShell..." 70 | ( 71 | powershell Set-ExecutionPolicy RemoteSigned 72 | reg add "HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" /v ExecutionPolicy /t REG_SZ /d RemoteSigned /f 73 | ) %no-output-attribute% 74 | 75 | call :log "Cleaning Windows Defender related registry keys..." 76 | ( 77 | reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features" /v "MpPlatformKillbitsFromEngine" /t REG_BINARY /d 0000000000000000 /f 78 | reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features" /v "TamperProtectionSource" /t REG_DWORD /d 0 /f 79 | reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features" /v "MpCapability" /t REG_BINARY /d 0000000000000000 /f 80 | reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features" /v "TamperProtection" /t REG_DWORD /d 0 /f 81 | reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\ShellServiceObjects\{900c0763-5cad-4a34-bc1f-40cd513679d5}" /f 82 | reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellServiceObjects\{900c0763-5cad-4a34-bc1f-40cd513679d5}" /f 83 | reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender" /f 84 | reg delete "HKEY_CLASSES_ROOT\Folder\shell\WindowsDefender" /f 85 | reg delete "HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity" /f 86 | reg delete "HKEY_CLASSES_ROOT\Folder\shell\WindowsDefender\Command" /f 87 | reg delete "HKEY_CLASSES_ROOT\AppX1sy7rwrc20ggq97a6x1mgmjat0rthy51" /f 88 | reg delete "HKEY_CLASSES_ROOT\AppXb5yxv86nkhp530y0y50yxe69c1qwad1x" /f 89 | reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.sechealthui_8wekyb3d8bbwe" /f 90 | reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Extensions\ProgIDs\AppX1sy7rwrc20ggq97a6x1mgmjat0rthy51" /f 91 | reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Extensions\ProgIDs\AppXb5yxv86nkhp530y0y50yxe69c1qwad1x" /f 92 | reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Extensions\windows.fileTypeAssociation\.all\AppXb5yxv86nkhp530y0y50yxe69c1qwad1x" /f 93 | reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.SecHealthUI_8wekyb3d8bbwe" /f 94 | reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PolicyCache\Microsoft.SecHealthUI_8wekyb3d8bbwe" /f 95 | reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.SecHealthUI_8wekyb3d8bbwe" /f 96 | reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.SecHealthUI_8wekyb3d8bbwe" /f 97 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{2781761E-28E0-4109-99FE-B9D127C57AFE}" /f 98 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{2781761E-28E2-4109-99FE-B9D127C57AFE}" /f 99 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{195B4D07-3DE2-4744-BBF2-D90121AE785B}" /f 100 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{361290c0-cb1b-49ae-9f3e-ba1cbe5dab35}" /f 101 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{45F2C32F-ED16-4C94-8493-D72EF93A051B}" /f 102 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{6CED0DAA-4CDE-49C9-BA3A-AE163DC3D7AF}" /f 103 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{8a696d12-576b-422e-9712-01b9dd84b446}" /f 104 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{8C9C0DB7-2CBA-40F1-AFE0-C55740DD91A0}" /f 105 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{A2D75874-6750-4931-94C1-C99D3BC9D0C7}" /f 106 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{A7C452EF-8E9F-42EB-9F2B-245613CA0DC9}" /f 107 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{DACA056E-216A-4FD1-84A6-C306A017ECEC}" /f 108 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{E3C9166D-1D39-4D4E-A45D-BC7BE9B00578}" /f 109 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{F6976CF5-68A8-436C-975A-40BE53616D59}" /f 110 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{2781761E-28E0-4109-99FE-B9D127C57AFE}" /f 111 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{2781761E-28E2-4109-99FE-B9D127C57AFE}" /f 112 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{195B4D07-3DE2-4744-BBF2-D90121AE785B}" /f 113 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{361290c0-cb1b-49ae-9f3e-ba1cbe5dab35}" /f 114 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{45F2C32F-ED16-4C94-8493-D72EF93A051B}" /f 115 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{6CED0DAA-4CDE-49C9-BA3A-AE163DC3D7AF}" /f 116 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{8a696d12-576b-422e-9712-01b9dd84b446}" /f 117 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{8C9C0DB7-2CBA-40F1-AFE0-C55740DD91A0}" /f 118 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{A2D75874-6750-4931-94C1-C99D3BC9D0C7}" /f 119 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{A7C452EF-8E9F-42EB-9F2B-245613CA0DC9}" /f 120 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{DACA056E-216A-4FD1-84A6-C306A017ECEC}" /f 121 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{E3C9166D-1D39-4D4E-A45D-BC7BE9B00578}" /f 122 | reg delete "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{F6976CF5-68A8-436C-975A-40BE53616D59}" /f 123 | ) %no-output-attribute% 124 | 125 | :: Autorun 126 | call :log "Cleaning Autorun..." 127 | ( 128 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /va /f 129 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" /va /f 130 | reg delete "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run" /va /f 131 | reg delete "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce" /va /f 132 | reg delete "HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run" /va /f 133 | powershell "Remove-Item -Path ([System.Environment]::GetFolderPath('Startup') + '\*') -Force" 134 | ) %no-output-attribute% 135 | 136 | :: Delete Shell registry key for current user and local machine 137 | call :log "Deleting Winlogon\Shell values..." 138 | ( 139 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v Shell /f 140 | reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v Shell /f 141 | ) %no-output-attribute% 142 | 143 | call :log "Starting Windows Installer services..." 144 | ( 145 | sc config trustedinstaller start=auto 146 | sc config bits start=auto 147 | sc config cryptsvc start=auto 148 | sc config wuauserv start=auto 149 | net start trustedinstaller 150 | net start bits 151 | net start cryptsvc 152 | net start wuauserv 153 | ) %no-output-attribute% 154 | 155 | :: Perform system integrity and cleanup checks 156 | call :log "Running system files checker..." 157 | sfc /scannow %no-output-attribute% 158 | 159 | call :log "Running DISM scan for image health..." 160 | dism /online /cleanup-image /scanhealth %no-output-attribute% 161 | 162 | call :log "Checking DISM image health..." 163 | dism /online /cleanup-image /checkhealth %no-output-attribute% 164 | 165 | call :log "Restoring DISM image health..." 166 | dism /online /cleanup-image /restorehealth %no-output-attribute% 167 | 168 | call :log "Resetting base image..." 169 | dism /online /cleanup-image /startcomponentcleanup /resetbase %no-output-attribute% 170 | 171 | :: Disable telemetry and more... 172 | 173 | call :log "Telemetry disabling..." 174 | ( 175 | sc stop DiagTrack 176 | sc config DiagTrack start= disabled 177 | sc stop dmwappushservice 178 | sc config dmwappushservice start= disabled 179 | reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v Start /t REG_DWORD /d 0 /f 180 | reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f 181 | reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DoNotShowFeedbackNotifications" /t REG_DWORD /d 1 /f 182 | reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "MaxTelemetryAllowed" /t REG_DWORD /d 0 /f 183 | reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "DisableDeviceCensus" /t REG_DWORD /d 1 /f 184 | reg add "HKLM\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility" /v "DiagnosticErrorText" /t REG_DWORD /d 0 /f 185 | reg add "HKLM\SOFTWARE\Microsoft\WindowsSelfHost\UI\Strings" /v "DiagnosticErrorText" /t REG_SZ /d "" /f 186 | reg add "HKLM\SOFTWARE\Microsoft\WindowsSelfHost\UI\Strings" /v "DiagnosticLinkText" /t REG_SZ /d "" /f 187 | ) %no-output-attribute% 188 | 189 | call :log "Uninstalling Cortana..." 190 | powershell Get-AppXPackage -AllUsers Microsoft.549981C3F5F10 ^| Remove-AppxPackage %no-output-attribute% 191 | 192 | call :log "Cleanup temp files..." 193 | if not exist "%temp%" md "%temp%" 194 | pushd "%temp%" 195 | rd "%cd%" /q /s %no-output-attribute% 196 | popd 197 | 198 | call :log "Clearing event logs..." 199 | pushd "%appdata%\Microsoft\Windows\Recent" 200 | rd "%cd%" /q /s %no-output-attribute% 201 | popd 202 | for /f "delims=" %%I in ('WEVTUTIL EL') do (WEVTUTIL CL "%%I") %no-output-attribute% 203 | 204 | call :log "Cleaning icons cache..." 205 | ( 206 | del %localappdata%\IconCache.db /A 207 | ie4uinit.exe -show 208 | ie4uinit.exe -ClearIconCache 209 | ) %no-output-attribute% 210 | 211 | call :log "Disk cleaning..." 212 | ( 213 | del %appdata%\*.log /q /s 214 | cleanmgr /sagerun:1 /autoclean 215 | ) %no-output-attribute% 216 | 217 | call :log "Explorer restarting..." 218 | ( 219 | taskkill.exe /im explorer.exe /f 220 | start explorer.exe 221 | ) %no-output-attribute% 222 | 223 | call :log "Completion..." 224 | 225 | echo. 226 | 227 | timeout 1 /nobreak %no-output-attribute% 228 | 229 | cls 230 | color 0f 231 | 232 | call :colored 0 f " " 233 | 234 | call :colored 0 f " " 235 | call :colored 8 2 " " 236 | call :colored 0 f " " 237 | 238 | call :colored 0 f " " 239 | call :colored f 2 " The utility has completed its work. The system has been repaired and cleaned. " 240 | call :colored 0 f " " 241 | 242 | call :colored 0 f " " 243 | call :colored 7 2 " You can close this window. " 244 | call :colored 0 f " " 245 | 246 | call :colored 0 f " " 247 | call :colored 8 2 " " 248 | call :colored 0 f " " 249 | 250 | call :colored 0 f " \n\n" 251 | call :colored 0 0 " " 252 | call :colored f 4 "[1] - Exit from FastTweak" 253 | choice /C "1" /N 254 | exit /b 0 255 | 256 | :UACPrompt 257 | color 46 258 | for /l %%i in (1, 1, 20) do @ ( 259 | echo:Administrator rights required! 260 | ) 261 | mshta "vbscript:CreateObject("Shell.Application").ShellExecute("%~fs0", "", "", "runas", 1) & Close()" 262 | goto :eof 263 | 264 | :log 265 | call :colored 3 1 "[%time%] " 266 | call :colored f 1 "%~1\n" 267 | goto :eof 268 | 269 | :: Colored-Batch (assembly module) 270 | :colored 271 | if "%~3" == "" ( 272 | echo Incorrect arguments 273 | ) 274 | set "modulePath=%temp%\colored_batch_module.com" 275 | set "tempSourcePath=%temp%\%random%.tmp" 276 | if not exist "%modulePath%" ( 277 | set/p%tempSourcePath% 278 | "%windir%\Microsoft.NET\Framework\v4.0.30319\csc.exe" /out:"%modulePath%" "%tempSourcePath%" /nologo /debug- /optimize+ 279 | if exist "%tempSourcePath%" del "%tempSourcePath%" 280 | ) 281 | call %modulePath% %* 282 | goto :eof 283 | 284 | :: sizeof (native-batch module) 285 | :sizeof 286 | call set "sizeof.in=%%%~1%%" 287 | if ["%sizeof.in%"] == [""] EXIT/B 0 288 | set /a sizeof.len=1 289 | :sizeof.tmp 290 | set "sizeof.in=%sizeof.in:~0,-1%" 291 | if ["%sizeof.in%"] == [""] (EXIT/B %sizeof.len%) else ( 292 | set /a sizeof.len=sizeof.len + 1 293 | goto sizeof.tmp 294 | ) 295 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 DosX 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FastTweak Utility 2 | 3 | FastTweak is a powerful Batch program designed to enhance your computer experience by providing a quick and efficient way to disable telemetry, clean up autoload settings, logs, and other residual activities without compromising your system's functionality. This tool operates autonomously, requiring just a simple launch to get things started. 4 | 5 | ## Features 🚀 6 | 7 | - **Telemetry Disabler**: Say goodbye to unwanted telemetry on your computer. 8 | - **Autorun Cleanup**: Streamline your startup process by managing autoload configurations. 9 | - **Log Cleaner**: Wipe away logs and previous activities for a cleaner system. 10 | - **User-friendly**: FastTweak is designed for ease of use. Just run it! 11 | 12 | ![](screenshot.jpg) 13 | 14 | ## Getting Started 🏁 15 | 16 | 1. **Download**: Clone or [download](https://codeload.github.com/DosX-dev/FastTweak/zip/refs/heads/main) the FastTweak repository to your computer. 17 | 18 | ```batch 19 | git clone https://github.com/DosX-dev/FastTweak.git 20 | ``` 21 | 22 | 2. **Run**: Execute the `FastTweak-v1.2.cmd` 23 | 24 | 3. **Enjoy**: FastTweak will automatically perform the necessary tweaks without requiring additional input. 25 | 26 | ## Disclaimer ⚠️ 27 | 28 | Use FastTweak responsibly. While it aims to enhance your computer experience, ensure you understand the changes it makes to your system. The developers are not responsible for any unintended consequences. 29 | 30 | ## Contribution 💡 31 | 32 | FastTweak is an open-source project. Feel free to contribute by creating issues, suggesting improvements, or submitting pull requests. 33 | 34 | ## Donation 🤝 35 | Bitcoin: 36 | ```BTC 37 | 1DosXdevPgbaRKJkAJpvf2Jmjip8zC57he 38 | ``` 39 | Litecoin: 40 | ```LTC 41 | LUCKY777ju5Ea2VmenRuvk75kRUzTfwrHw 42 | ``` 43 | 44 | Happy tweaking! 🚀 45 | -------------------------------------------------------------------------------- /screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DosX-dev/FastTweak/2b0cac1b5f7ce9c8384add7a8dbb6ad959d05c8c/screenshot.jpg --------------------------------------------------------------------------------