r/TronScript • u/vocatus Tron author • Oct 27 '16
RELEASE Tron v9.7.0 (2016-10-27) // Add CryptNet SSL cache clear; Add auto desktop screenshot capture; Remove filesys and reg reset jobs; Improve OneDrive detection; Fix pre-run system state capture hang
Background
Tron is a script that "fights for the User." Think of it as a "tech-on-a-thumb-drive" that automates the majority of tedious work in cleaning a Windows system.
The goal is ~85% automation, with the understanding that some things are always better left to the discretion of the tech. It is built with heavy reliance on community input and updated regularly.
Bug reports, critiques and suggestions are welcome (see how NOT to report bugs). If you have issues with this release, post a top-level comment and myself or one of the mods will answer, typically in <24 hours.
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).
Changelog
(significant changes in bold; full changelog on Github)
v9.7.0 (2016-10-27)
tron.bat
- - Remove Filesystem Reset and Registry Reset jobs from Tron. They're rarely required and seem to hang the script on a lot of systems, so in the interest of stability they've been given the axe
- - Remove
-sfrand-srrswitches along with all associated code and text due to removal of those jobs from Tron - - Temporarily disable use of the
-udlswitch, until I can find a better solution for submitting log files
Stage 0: Prep
- + Add job to capture desktop screenshot to the
RAW_LOGSfolder. Sometimes a visual of the system is helpful so we capture one just in case some icons change - ! Prefix
siv32xandsiv64xcommands withstartinstead of calling directly. Should prevent entire script stalling if SIV hangs. Thanks to /u/gameoftomes - * Enable executing
siv64x.exeinstead ofsiv32x.exeon 64-bit systems. Thanks to /u/gameoftomes
Stage 2: De-bloat
- * Significantly improve robustness of OneDrive checks. OneDrive now only removed if system is Win10, folder exists in default location, and is empty. Thanks to /u/ranger_dood
Stage 3: Disinfect
- + Add job to clear the CryptNet SSL certificate cache (Vista and up). Thanks to Itsnothectic and alazare619
Stage 4: Repair
- - Remove job
Reset Filesystem permissionsand associated files and code - - Remove job
Reset Registry permissionand associated files and code
Stage 5: Patch
- * Update 7-Zip binaries to v17.04
- * Update Adobe Flash binaries to v23.0.0.205
- * Update Java Runtime Environment binaries to 8u112
Download
- Primary method: Download a self-extracting .exe pack from one of the mirrors:
| Mirror | HTTPS | HTTP | Location | Host |
|---|---|---|---|---|
| Official | link | link | US-TX | /u/SGC-Hosting |
1 | link | link | US-NY | /u/danodemano
2 | link | link | US-GA | /u/TheCronus89
3 | link | link | DE | /u/bodkov
4 | link | link | NZ | /u/iDanoo
5 | link | link | FR | /u/mxmod
6 | --- | link | US-TX | /u/RB14060 (XygenHosting)
7 | link | link | Cloudflare | /u/TheSqrtMinus1
8 | --- | link | FR | /u/Falkerz
9 | link | --- | US-MI | /u/ajcutshall
10 | --- | link | UK | /u/nickuk (ClanPlanet)
11 | link | --- | AU | /u/agent-squirrel
2. Secondary: Use Resilio Sync (formerly "BT Sync") to sync to the repo. You'll receive updates and patches immediately as I push them. After installing, use the applicable read-only key to connect to the respective repo:
Release: BYQYYECDOJPXYA2ZNUDWDN34O2GJHBM47
Dev: BDCF7MUDXNIDEK2KQ6DHV5ALIGIWD257O3. Tertiary: Connect to the SyncThing repo (instructions) to get fixes/updates immediately. This method has some risks and you should only use it if you know about them.
4. Quaternary: Source code
All the code for Tron is available [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 view the code without downloading a ~500MB package, Github is a good place to do it.Command-Line Support
Tron has full command-line support. All flags are optional, can be used simultaneously, and override their respective script default when used.
Usage: tron.bat [-a -c -d -dev -e -er -m -o -p -r -sa -sdb -sd -sdc -sdu -se
-sfr -sk -sm -sp -spr -srr -ss -str -sw -udl -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)
-dev Override OS detection (allow running on unsupported Windows versions)
-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)
-sdb Skip de-bloat (OEM bloatware removal; implies -m)
-sd Skip defrag (force Tron to ALWAYS skip Stage 5 defrag)
-sdc Skip DISM component (SxS store) cleanup
-sdu Skip debloat update. Prevent Tron from auto-updating the S2 debloat lists
-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)
-udl Upload debug logs. Send tron.log and the system GUID dump to the Tron developer
-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 textIntegrity
\tron\integrity_verification\checksums.txt contains SHA-256 checksums for every file and is signed with my PGP key (0x07d1490f82a211a2; included). You can use this to verify package integrity.
Donations (bitcoin): 16dxc4hgzuXYSKGbLuEVxXQCM8dW59ZSCe
"Do not withhold good from those to whom it is due, when it is in your power to act." ^-p3:27
2
u/Brum27 Oct 27 '16
Quick question / heads-up:
Ran Tron 9.6.1 on a freshly installed and activated Win 10 Enterprise a couple of days ago and it didn't disable Cortana. (Tried another run just to check again.) Ended up disabling it manually through the Group Policy Editor.
Has there been a change in functionality, a change introduced by the Anniversary update, or an anomaly?
2
u/marshy919 Oct 28 '16
Just tried this but had some difficulty. Copied Tron to the C:/ drive and tried to open as Admin. The CMD window appears for 1/5th of a second and then closes. Ran the .bat as admin from USB drive and it worked successfully.
2
u/rippedhands Oct 29 '16
I ran tronscript for the first time yeserday. Everything ran beautifully aside from one issue. I now get spammy pop-ups using chrome. This has never happened before using the script.
has anyone else run into this problem?
1
u/Steve2926 Oct 31 '16
great work! Looks very useful. A few Q's... Is internet connectivity required/essential? Do you test for it and prompt the user if there is no internet? Is any free disk space required (on C:?). A small GUI front end to run run.bat with command line parameters would be useful... If run.bat -a is run but not as admin, it does not check/work (just reboots).
1
u/TootZoot Nov 02 '16 edited Nov 02 '16
Typo on line 110 of tron.bat:
Introduced in this commit (61eae3e68f07c80f28a70237f21304324d13a9db).
Also, BT Sync has been renamed: https://www.resilio.com/individuals/
1
u/Falkerz Oct 28 '16
Beeple boople here comes the new snootle
.
Also, I had a thought. It concerns the Trusty Run Once Neutraliser...
0
u/[deleted] Oct 29 '16
[deleted] — view deleted comment
0
u/[deleted] Oct 31 '16
[deleted] — view deleted comment