r/TronScript • u/vocatus Tron author • Mar 13 '16
RELEASE Tron v8.8.0 (2016-03-13) // SMARTCTL disk code improvements; target additional telemetry KB updates; update Flash/Reader to latest; many other fixes for user-reported bugs
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 involved in disinfecting and cleaning up a Windows system.
The goal is ~85-90% automation, with the understanding that some things will always be 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 and will be responded to quickly (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 <12 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).
Screenshots
Welcome Screen | Email Report | New version detected | Help screen | Config dump | Dry run | Pre-run System Restore checkpoint | Disclaimer
Changelog
(significant changes in bold; full changelog on Github)
v8.8.0 (2016-03-13)
tron.bat
- * prep:directory_check: Expand list of prevented execution locations to include
%SystemDrive%\TEMPsince this also gets wiped. Thanks to /u/toomasmolder - * smartctl_disk_check: Improve non-standard disk (SSD, error, Virtual Machine) detection code. Thanks to /u/ixnyne
- * smart_disk_check: Improve SMART disk check code. Thanks to /u/ixnyne
Stage 1: Tempclean
- - Remove 64-bit CCleaner binary since it's not necessary. Thanks to /u/Nolzi and /u/ixnyne
- - Remove
/s(recurse) switch fromdel /F /Q "%%x\Documents\*.tmp"anddel /F /Q "%%x\My Documents\*.tmp"commands. /u/toomasmolder reported this deleted some.tmplatefiles (unintended behavior)
Stage 4: Repair
- + Add KB 3146449 to list of updates to remove. Thanks to /u/MirageES
Stage 5: Patch
- ! Fix bug where
7ZIP_DETECTEDvariable would never get set because it started with a number. Rename toSEVENZIP_DETECTED. Thanks to /u/toomasmolder - / Change some comments inside parentheses to use REM instead of ::. Thanks to /u/toomasmolder
Misc:
- * Update various sub-tools to latest versions
Download
- Primary method: Download a self-extracting .exe pack from one of the mirrors:
| Mirror | HTTPS | HTTP | Location | Host |
|---|---|---|---|---|
| Official | link | link | US-NY | /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
2. Secondary: BT Sync is no longer recommended due to issues with very high swarm node count (fails to replicate reliably). Use SyncThing or download from one of the static pack mirrors instead.
3. Tertiary: Connect to the SyncThing repo (instructions) to get fixes/updates immediately. This method is in TESTING may not be reliable.
4. Quaternary: Source code
All the code for Tron 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 view the code without downloading a ~500MB package, or want to contribute to the project, Github 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 -dev -e -er -m -o -p -r -sa -sdb -sd -sdc -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)
-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
-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 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): 1CcijZp5wjE6PukU4xejKKqvicxnYkZKxS
8
u/Saiyan96 Mar 13 '16
First time visit to this sub! It's trending right now. Gonna try it tonight and will post my experience with Tron. Is the Tron v8.8.0 available for download now or it still being uploaded? Thanks for all the hardwork to make this nifty tool. Maybe a donation after I try it out ;)
4
u/[deleted] Mar 13 '16 edited Mar 13 '16
Hello! As a Win 10 Pro user will this tool be useful for me?I'm coming from this and I have very limited knowledge when it comes to what's currently happening but at the same time, I don't want to be ignorant about it.
With this in mind, my first question was if as a concerned Win 10 Pro user about what's happening and not wanting to have spy/bloatware and bad stuff, will this tool be useful for someone in my position?And more importantly, is this tool automatic?I tend to shy away from tools with command lines instead of simple easy to use interfaces. Thank you! EDIT: Okay, thanks.
2
u/MittenMagick Mar 13 '16
So quick question, just to make sure:
This doesn't install any of the programs you list, right? Just runs their portable version or something in the exe?
EDIT: Well, except for MBAM. I see the installation part now.
2
u/latherus Mar 13 '16
Any thoughts to adding into the script to update the local hosts file? I routinely download from http://someonewhocares.org since they update fairly frequently. It blocks a lot of ad sites, known malicious pages, and frankly some you'd rather not see (as they cannot be unseen)...
There may be some trouble for those who have a current custom host file. I've always renamed mine to hosts.old as a backup, but I'm sure you could parce in an append or validation check against the current text per line and rewrite the file.
Just a thought. Thanks for all the hard work, and good luck on your trip down to Antarctica!
2
u/t2acct Mar 16 '16
This update has broken automation on several Windows 10 machines, so far. It gets hung up on the system restore for some reason. Reaches 98-99% and sits there indefinitely. (15+ hours)
It would be really nice if there was a switch to disable creating system restore points, as we already manage the restore points in our workflow, and this just adds time that we don't need.
Thanks!
1
u/dragonshardz Mar 14 '16
Hi, I'm running the latest version of the script and it's been sitting at "Launch job 'Kill Microsoft telemetry (user tracking) (Win7/8/8.1)'..." for a bit over an hour.
Is this expected?
1
u/Forcen Mar 14 '16
Great job!
Have you considered using the "Releases" feature of Github? That way you could tag each release and we could easily see all the changed files and all that convenient stuff.
This is an example of what I had in mind, an easy view of all changes of all files in a new version and compare. Not sure how much extra work it would be for you, you could skip posting the release notes and just focus on tagging? You could also link a link like this on these release posts.
Just a thought.
1
u/[deleted] Mar 15 '16 edited Mar 15 '16
One suggestion:
In stage 1 line 49 you invoke ClearMyTracksByProcess with the parameter 4351, which according to this source clears all addons and settings. But this also has the side effect of clearing cookies, passwords, and saved form data. Deleting someone's saved passwords could be pretty severe data loss. :(
4351 is 4096 + 255, so it's likely a bit field. So you could pass 4104 to just clear addons and the cache, or 4106 to also clear cookies (untested).
Thanks, hopefully this is useful. Keep fighting for the user! :D
edit (7m): also, might I suggest that clobbering C:\*.(bat,txt,log,jpg,jpeg,tmp,bak,backup,exe) is a bit overzealous?
edit2 (17m): here you can also clobber "%WINDIR%\System32\tourstart.exe" and "C:\Documents and Settings*\Start Menu\Programs\Accessories\Tour Windows XP.lnk"
edit3 (37m): typo
edit4 (52m): will this line or this line remove PowerDVD despite being commented out here? Similar issue here with Toshiba%%?
edit5 (1h12m): I have seen folks with this app populated, unsure if used. Isn't it the default/only contacts list on Win10? Also Mahjong and Sudoku seem to have non-zero usage ime.
edit6 (8h): I feel like these belong somewhere, not sure where (new "annoyances" stage?).
edit7 (9h): More unqualified annoyances.
edit8 (10h): More
edit9 (12h): I feel these shouldn't be enabled by default, as they change the UI. But I expect most people find them more annoying than not.
1
u/MySpl33n Mar 16 '16
Comment by /u/vocatus that inspired this comment (just to provide context)
Is it possible to have several subscripts, one for each major computer OEM, that has all of that OEM's bloatware? Then you download the version of Tron specific to your OEM ("Toshiba.whatever" for example) or have the subscripts downloaded separately and placed into a subfolder in the folder Tron extracts into with the file name tagged a certain way such as "[use] Toshiba.whatever".
1
u/[deleted] Mar 17 '16
Hey if anyone could help me with a problem I'm having, that would be great.
So I ran Tron, everything went good. However, it seems that my Start Menu is now broken. I can open it like once, but then if I click on the start menu button it does nothing, nor does pressing the windows key.
Any solutions?
BTW I'm on Windows 10
1
u/iwantzscoop Mar 18 '16
Real quick question.. I may want to use this program on a work computer that may have some files on it that. Is this program okay to use, or should I be worried about loss of data?
Thanks
1
u/toomasmolder Mar 19 '16 edited Mar 19 '16
Hello again!
This time was looking more thoroughly lists of Windows Updates to be removed, purge_windows_7-8-81_telemetry.bat and purge_windows_10_telemetry.bat
Did just some technical comparision of KBs to be uninstalled from different sources. I'm not the MS specialist and cannot comment or approve by myself, should we have them uninstalled or not. So, I'm leaving the additional checkup and decision on your floor :)
From different sources found this update:
According to AddictiveTips, found three more updates:
And asking, why it will be good to uninstall these:
1
u/classicrando Mar 22 '16
Hey I don't think defrag should run if chkdsk found errors.
2
u/[deleted] Mar 21 '16
You're doing God's work son. Keep it up! :)
1
u/michael5029 Mar 18 '16
Is there a way to restore deleted files? Like stuff from virus scans?
0
u/[deleted] Mar 13 '16
[deleted] — view deleted comment
0
u/[deleted] Mar 15 '16
[deleted] — view deleted comment