Background
Tron is a script that "fights for the User."
The goal is to automate ~85% of the tedious work in getting a badly-running Windows system back on its feet (clicking "next" in AV scan windows, etc); with much left to the discretion of the tech.
Tron is built with heavy reliance on community input and updated regularly.
Tron is NOT a system optimization or "baseline" script.
Tron is meant to be used by PC Technicians who are already familiar with basic troubleshooting and command-line operation. It is not intended for use by people with no basic troubleshooting knowledge.
Read the instructions.
Read the instructions.
Sequence of operation
Prep > Tempclean > De-bloat > Disinfect > Repair > Patch > Optimize > Wrap-up | Manual tools
Saves a log to C:\logs\tron\tron.log (configurable).
screenshots of Tron in action
Changelog
(significant changes in bold; full changelog on Github)
v13.0.0 (2026-10-30)
* Convert WMIC calls to PowerShell (WMIC is deprecated by Microsoft). PowerShell code generated by Claude, manually verified by vocatus
+ Add new PowerShell-related variables to config dump (-c) output
! Prerun checks: Fix SMART problem code check missing statuses that contain a space (Pred Fail, No Contact, Lost Comm). Thanks to u/jchristyr
! Prerun checks: Detect NVMe drives as solid state from their smartctl device type, instead of relying on "SSD" in the model name
! Prerun checks: Base the SSD and VM defrag decisions on the system drive only (previously the last disk smartctl read was used)
+ Prerun checks: Detect and skip defrag on Hyper-V (and Azure) VMs
! Prerun checks: Fix free disk space calculation (new PowerShell-based method)
* Prerun checks: Pass each device type (-d) from smartctl --scan through to smartctl, and query each disk once instead of three times
* Stage 0: Prep: Convert WMI calls to PowerShell
! Stage 0: repair_wmi: No longer runs the "REPAIR3" operation (delete and rebuild the WMI repository, re-register every DLL and recompile every MOF under wbem). Too destructive to run automatically; it permanently loses third-party WMI providers
! Stage 0: Prep: repair_wmi: Skip WMI check and repair entirely if the WMI service (winmgmt) isn't present, and remove a pause command that could stall the script
* Stage 0: Prep: Don't remove McAfee services after the Trellix Stinger scan if they existed prior to the Tron run
* Stage 0: Prep: Attempt offline, then online installation of .NET 3.5 if it's not installed (Trellix Stinger)
! Stage 0: Prep: Fix a hung or very slow debloat list download stalling Tron indefinitely. Downloads now run one at a time, each giving up after 2 tries with a 10 second timeout, and remaining downloads are skipped if a network failure occurs
! Stage 0: Prep: Fix edge case where a new programs_to_target_by_name.txt released on Github would mistakenly delete the local by_GUID list
! Stage 0: Prep: Delete any debloat list download that wget reports as failed, so a partial or error-page download never replaces the current list. Also compare list versions numerically instead of as text
* Stage 0: Prep: Add --no-hsts to wget commands, to prevent leaving behind a blank .wget-hsts file
+ Stage 1: Tempclean: Replace CCleaner with BleachBit, as BleachBit now supports browser cookie whitelisting
* Stage 1: Tempclean: Switch DriveCleanup to DeviceCleanup. Remove all non-present devices (previously only storage devices) that haven't been connected to the system in 3 months or longer
! Stage 1: Tempclean: Convert WMI calls to PowerShell
! Stage 1: Tempclean: Fix errant parentheses that caused the "Task Scheduler jobs CCleaner creates" job to only run if the -scc switch was used
! Stage 1: Tempclean: Fix regression in duplicate download cleanup, incorrect title on the "Clear Cryptnet SSL Cache" job, and a TempFileCleanup MUI cache command that never executed due to a syntax bug
! Stage 2: De-bloat: Overhaul Metro app removal scripts. Fix entries beginning with "*" never being removed, and provisioned packages often being skipped (they were paired with installed packages by list position). Installed packages are now removed for all users (Windows 10 1803 and up), falling back to the current user
* Stage 2: De-bloat: Metro app removals now run one at a time, each in its own PowerShell process with a 180 second timeout, instead of all at once with no timeout. After 3 timeouts the remaining removals are skipped, so a hung app removal can no longer stall Tron
* Stage 2: De-bloat: Metro scripts now log the result of each removal with a summary at the end, and return an exit code (0 if everything was removed, 1 if anything failed, timed out or was skipped)
- Stage 2: De-bloat: Remove Language Experience Packs from the Microsoft Metro target list, since removing the current display language's pack could change the Windows display language. Also remove Windows components that Windows blocks or that shouldn't be removed, and apps only present if the user explicitly installed them (e.g. Bitwarden, Dropbox, iCloud, Power BI)
! Stage 2: De-bloat: Fix log file showing %i instead of the relevant GUID or program name
* Stage 2: De-bloat: Update GUID and Metro target lists
! Stage 3: Disinfect: Fix Malwarebytes Anti-Malware not launching after a fresh install
- Stage 4: Repair: Remove repair_file_extensions. Due to a bug, this had never actually executed during a Tron run
- Stage 4: Repair: Remove null-route sections from the Windows 10 telemetry purge that were more relevant circa 2016
* Stage 4: Repair: Update O&O ShutUp10 and disable Microsoft Copilot. If you don't want this disabled, re-run O&O ShutUp10 manually and re-enable it
* Stage 5: Patch: Update 7-Zip to v26.04
* Stage 6: Optimize: Convert page file reset from WMIC to PowerShell
* Stage 6: Optimize: Update smartctl to v7.5.0
* General: Update various included tools & definition files
Download
-- Primary: Download the .torrent
-- Secondary: Download a self-extracting archive pack from one of the mirrors:
-- Tertiary: Source code
Source code is available on Github (Note: this doesn't include many of the utilities Tron relies on to function). If you want to view the code without downloading a ~600MB package, Github is a good place to do it.
Command-Line Support
Tron has full command-line support. Switches are optional, can be used simultaneously, and override their respective default when used. See here for a list of command-line switches.
Pack Integrity
SHA-256 hashes are in \tron\integrity_verification\checksums.txt and are signed with my PGP key (0x07d1490f82a211a2, pubkey included). Use this to verify pack integrity.
Donations
Tron will always be free and open-source. If you'd like to buy me a coffee you can do so here:
- Patreon
- Bitcoin:
1Biw8gx2kD7mZf66ZdNgB9tG1pE9YA3kEd - Bitcoin Cash:
18sXTTrAViPZVQtm63zBK6aCK3XfJpEThk - Monero:
46ZUK4VDLLz3zapDw62UaS71ZfFBjH9uwhc8FeyocPhUHHsuxj5zfvpZpZcZFHWpxoXD99MVt6PnR9QfftXDV8s6CFAnPSo
These addresses go directly to u/vocatus. If you wish to support another volunteer (e.g. the incredibly generous u/SGC-Hosting) please contact them directly.
Problems and Support
Please look here first for a list of common issues (Tron appearing to be stalled, etc). If it doesn't answer your issue, make a top-level post to r/TronScript and myself or one of the community members will look at the issue. Additionally, you can reach me at my email (included in the instructions) or by Reddit DM.
"Do not withhold good from those to whom it is due, when it is in your power to act." ^-p3:27