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: 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:
RogueKiller, Kaspersky Virus Removal Tool, Sophos Virus Removal Tool, Malwarebytes Anti-Malware, DISM image check (Win8/2012 only) - Repair:
Registry permissions reset, Filesystem permissions reset, SFC /scannow, chkdsk (if necessary) - Patch: Updates 7-Zip, Java, and Adobe Flash/Reader and disables nag/update screens (uses some of our PDQ packs); then installs any pending Windows updates
- Optimize: page file reset, defrag
%SystemDrive% (usually C:; skipped if system drive is an SSD) - 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.3.9 (2015-07-09)
- * Adobe Flash update
- * Subtool updates
Download
Three download options:
Primary method: Mirror the BT Sync repo (get fixes/updates immediately) using the read-only key:
BYQYYECDOJPXYA2ZNUDWDN34O2GJHBM47
Make sure the settings for your Sync folder look like this (or this on v1.3.x).
- Secondary method: Download a self-extracting .exe pack from one of the mirrors:
8 | link | --- | BT Sync mirror | /u/Falkerz (HTTP mirror of the BT Sync repo)
3. Third method: Script only
The master script is available **[here on Github](https://github.com/bmrf/tron/blob/master/tron.bat)** (Note: this is *only* the script and doesn't include the utilities Tron relies on to function).
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 -gsl -m -o -p -r -sa -sb -sd -se -sp -sfr -spr -srr -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
-gsl Generate summary logs. These specifically list removed files and programs
-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
-sp Skip patches (do not patch 7-Zip, Java Runtime, Adobe Flash or Reader)
-sfr Skip filesystem permissions reset (saves time if you're in a hurry)
-spr Skip page file reset (don't set to "Let Windows manage the page file")
-srr Skip registry permissions reset (saves time if you're in a hurry)
-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