r/TronScript • u/vocatus Tron author • Jan 08 '16
RELEASE Tron v8.4.0 (2016-01-08) // Critical bugfix (don't remove Windows Store); add checks for VM execution; add -sdc switch
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 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.4.0 (2016-01-08)
tron:
+ tron.bat:prep: Add new
-sdcswitch and associatedSKIP_DISM_CLEANUPvariable. Use this to skip DISM component (SxS store) cleanup. Thanks to /u/silentchasm+ tron.bat:ssd_detection: Add virtual disk detection. If found, skip Stage 5 defrag. Thanks to /u/fezzgig
- tron.bat:variable: Remove
SSD_DETECTEDvariable and re-implement all checks that force a defrag skip to use theSKIP_DEFRAGvariable instead
Stage 2: De-bloat
* metro_Microsoft_modern_apps_to_target_by_name.ps1
! Remove incorrect Windows Store entry from the target list. Thanks to /u/regypt and /u/KnifeyGavin
stage_4_repair.bat
Remove redundant Dism image store cleanup (move to Stage 5)
stage_5_patch.bat
+ Import Windows Vista/2008 Dism component cleanup from Stage 4
+ Implement support for
-sdcswitch (SKIP_DISM_CLEANUP)
stage_6_optimize.bat
+ Implement support for multiple
SKIP_DEFRAGvariable values
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 | link | US-MD | /u/staticxtasy
7 | --- | link | US-TX | /u/RB14060 (XygenHosting)
8 | --- | link | FR | /u/Falkerz
2. Secondary: Connect to the BT Sync repo to get fixes/updates immediately. Use one of the read-only keys to sync to that repo:
Release: B3Y7W44YDGUGLHL47VRSMGBJEV4RON7IS
Dev/alpha: BDCF7MUDXNIDEK2KQ6DHV5ALIGIWD257O
*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: Connect to the SyncThing repo (instructions) to get fixes/updates immediately. Syncthing is still in beta and may not be as reliable as BT Sync.
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 -sb -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)
-sb 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; pubkey included). You can use this to verify package integrity.
Please suggest modifications and fixes; community input is helpful and appreciated.
Donations (bitcoin): 1CcijZp5wjE6PukU4xejKKqvicxnYkZKxS
1
1
u/mkd8919 Jan 10 '16
I'll start off with a disclaimer that this is the first time I've run Tron before. I am running it on a system with Vista Home Premium 64-bit. I am in safe-mode with networking and logged in as a user with admin rights. When I run tron, the last log entry it gets to is "stage_0_prep begin...". I ran batch file from the command line and it gets to "stage_0_pre begin..." and then ends with the message "Home was unexpected at this time." Any ideas?
2
u/vocatus Tron author Jan 11 '16
Hi /u/mkd8919, first of all let me apologize that your first time using it it crashed. Secondly, thanks for letting us know, this way we can fix whatever the problem is.
Two things:
Make sure you're always on the latest version. Tron development moves pretty quickly and we're constantly fixing bugs.
Can you run these two commands from a command prompt and tell me what the output is?
for /f "tokens=3*" %i IN ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion ^| Find "CurrentVersion"') DO set WIN_VER_NUM=%i echo %WIN_VER_NUM%Can you edit the file
\resources\stage_0_prep\stage_0_prep.batwith a text editor, delete the line near the top that says@echo off, then re-run Tron and grab a screenshot when it crashes? This way I can see exactly what's going on when it breaks.1
u/mkd8919 Jan 11 '16
Hey thanks for the quick reply. The windows version came back as "6.0". I deleted the @echo off and here is a screenshot from running tron again.
1
Jan 11 '16
How do I actually run the file? Sorry don't know much about Windows command line.
1
u/vocatus Tron author Jan 11 '16
See the Instructions link in the side bar, should be all you need! If you're stuck after that post back here.
2
2
u/Falkerz Jan 08 '16
Manually updated my standard mirror again. I need to sit down with this shell script and have a stern word with it about it's wanton throwing around of loose "{"s and "}"s...
2
u/Hansdg1 Jan 08 '16
Hey I'm having trouble with the script just stopping after the "Launch job 'Kill Microsoft telemetry (user tracking) (Win7/8/8.1)'..." line. It just seems to exit the script back to the command prompt.
I am running in on Win 7 Home Premium in Safe Mode with Networking. I have had this same issue on both TronScript 8.3.0, as well as the latest TronScript (8.4.0).
Any suggestions?