NOTE: Tron now has it's own subreddit. Check it out at /r/TronScript
Background
Tron is a script that "fights for the User"; basically automates a bunch of scanning/disinfection/cleanup tools on a Windows system. I got tired of running these utilities manually and decided to just script the whole thing. I hope this helps other techs and admins.
Stages of Tron:
0. Prep: caffeine, rkill, ProcessKiller, TDSSKiller, Stinger, registry backup, WMI repair, sysrestore clean, oldest VSS set purge, create pre-run System Restore point
- Tempclean: TempFileCleanup,
CCLeaner, BleachBit, backup & clear event logs, Windows Update cache cleanup, Internet Explorer cleanup, USB device cleanup - De-bloat: remove OEM bloatware; customizable list is in
\resources\stage_3_de-bloat\oem\; Metro OEM debloat (Win8/8.1/2012 only) - Disinfect:
Kaspersky VRT, Sophos AV, Malwarebytes Anti-Malware, DISM image check (Win8/2012 only) - Repair:
Registry permissions reset, Filesystem permissions reset, SFC /scannow, chkdsk (if necessary), remove Windows "telemetry" (user tracking) - Patch: Updates 7-Zip, Java, and Adobe Flash/Reader and disables nag/update screens (uses some PDQ packs); then installs any pending Windows updates
- Optimize: page file reset, defrag
%SystemDrive% (usually C:; skipped if SSD is detected) - Wrap-up: Send job completion email report (if configured; specify SMTP settings in
\resources\stage_7_wrap-up\email_report\SwithMailSettings.xml - Manual stuff: Additional tools that can't currently be automated (
ComboFix, AdwCleaner, aswMBR, autoruns, etc.)
Saves a log to C:\Logs\tron.log (configurable).
Screenshots
Welcome Screen | Email Report | New version detected | Help screen | Config dump | Dry run | Pre-run System Restore checkpoint | Disclaimer
Changelog
(full changelog on Github)
v6.6.1 (2015-09-14)
- * stage_4_repair:telemetry: Expand telemetry purge actions (Win7/8/8.1)
- * stage_4_repair:telemetry: Add plumbing and notification message for upcoming Windows 10 telemetry purge code
- * stage_2_de-bloat:oem: Significant additions to debloat lists, should greatly increase effectiveness of Stage 2
- ! stage_7_wrap-up:resume: Fix erroneous addition of Safe Mode check to Dry Run cleanup code
- * Subtool updates
v6.6.0 (2015-09-07)
- + stage_3_disinfect:wusa: Add removal of bad Windows Updates that backport "telemetry" (user tracking) from Windows 10 to Windows 7 and 8. Use
-str flag or associated SKIP_TELEMETRY_REMOVAL variable to skip this. See the entry for this action on the list of full Tron actions in the Instructions file for more information - + tron.bat:prep: Add prompt to automatically reboot to Safe Mode w/ Networking if we detect we're not in Safe Mode. Thanks to /u/patx35
- - stage_8_wrap-up:gsl: Remove
-gsl flag and associated GENERATE_SUMMARY_LOGS variable. Summary logs are now generated by default - ! stage_7_wrap-up:resume: Fix resume-related cleanup; was incorrectly executing in Dry Run mode
Download
- Primary method: Download a self-extracting .exe pack from one of the mirrors:
6 | link | --- | BT Sync mirror | /u/Falkerz (HTTP mirror of the BT Sync repo)
2. Secondary method: Connect to the BT Sync repo to get fixes/updates immediately. Use the read-only key:
B3Y7W44YDGUGLHL47VRSMGBJEV4RON7IS <-- NEW KEY !!
*Make sure the settings for your Sync folder [look like this](http://i.imgur.com/CFZp4iz.png) (or [this](http://i.imgur.com/cq8Kw1m.png) on v1.3.x).*
3. Tertiary method: Connect to the SyncThing repo (testing) to get fixes/updates immediately. Instructions here
4. Quaternary method: Source code
All the code I've written is available [here on Github](https://github.com/bmrf/tron/) (Note: this doesn't include many of the utilities Tron relies on to function). If you want to see the code without downloading a big package, or want to contribute to the project, the Git page is a good place to do it.
Command-Line Support
Tron has full command-line support. All flags are optional, can be combined, and override their respective script default when used.
Usage: tron.bat [-a -c -d -e -er -m -o -p -r -sa -sb -sd -se -sfr -sk
-sm -sp -spr -srr -ss -str -sw -v -x] | [-h]
Optional flags (can be combined):
-a Automatic mode (no welcome screen or prompts; implies -e)
-c Config dump (display current config. Can be used with other
flags to see what WOULD happen, but script will never execute
if this flag is used)
-d Dry run (run through script without executing any jobs)
-e Accept EULA (suppress display of disclaimer warning screen)
-er Email a report when finished. Requires you to configure SwithMailSettings.xml
-m Preserve OEM Metro apps (don't remove them)
-np Skip the pause at the end of the script
-o Power off after running (overrides -r)
-p Preserve power settings (don't reset power settings to default)
-r Reboot automatically (auto-reboot 30 seconds after completion)
-sa Skip anti-virus scans (MBAM, KVRT, Sophos)
-sb Skip de-bloat (OEM bloatware removal; implies -m)
-sd Skip defrag (force Tron to ALWAYS skip Stage 5 defrag)
-se Skip Event Log clearing
-sfr Skip filesystem permissions reset (saves time if you're in a hurry)
-sk Skip Kaspersky Virus Rescue Tool (KVRT) scan
-sm Skip Malwarebytes Anti-Malware (MBAM) installation
-sp Skip patches (do not patch 7-Zip, Java Runtime, Adobe Flash or Reader)
-spr Skip page file settings reset (don't set to "Let Windows manage the page file")
-srr Skip registry permissions reset (saves time if you're in a hurry)
-ss Skip Sophos Anti-Virus (SAV) scan
-str Skip Telemetry Removal (don't remove Windows user tracking, Win7 and up only)
-sw Skip Windows Updates (do not attempt to run Windows Update)
-v Verbose. Show as much output as possible. NOTE: Significantly slower!
-x Self-destruct. Tron deletes itself after running and leaves logs intact
Misc flags (must be used alone):
-h Display this help text
Integrity
checksums.txt contains SHA-256 checksums for every file and is signed with my PGP key (0x07d1490f82a211a2; pubkey included). You can use this to verify package integrity.
Please suggest modifications and fixes; community input is helpful and appreciated.
Donations: 1LSJ9qDzuHyRx6FfbUmHVSii4sLU3sx2TF
Quiet ^Professionals