Академический Документы
Профессиональный Документы
Культура Документы
-h
-m
-np
-o
-p
-r
-sa
-sb
-sd
-se
-sp
-sfr
-spr
-srr
-sw
-v
-x
set PRESERVE_POWER_SCHEME=no
- To configure post-run reboot, change this value (in seconds). 0 disables aut
o-reboot:
set AUTO_REBOOT_DELAY=0
- To skip anti-virus scan engines (MBAM, KVRT, Sophos), change this to yes:
set SKIP_ANTIVIRUS_SCANS=no
- To skip OEM debloat, change this to yes:
set SKIP_DEBLOAT=no
- To always skip defrag, regardless whether C:\ is an SSD or not, change this
to yes:
set SKIP_DEFRAG=no
- To skip Event Log clearing, change this to yes:
set SKIP_EVENT_LOG_CLEAR=no
- To skip patches (don't patch 7-Zip, Java, Adobe Flash and Reader) change thi
s to yes:
set SKIP_PATCHES=no
- To prevent Tron from granting the SYSTEM and Administrator accounts full per
missions to everything under the %WinDir% directory structure, change this to ye
s:
set SKIP_FILEPERMS_RESET=no
- To prevent Tron from resetting the page file to Windows defaults, change thi
s to `yes`:
set SKIP_PAGEFILE_RESET=no
- To prevent Tron from granting the SYSTEM and Administrator accounts full per
missions to the HKLM, HKCU, and HKCR hives, change this to yes:
set SKIP_REGPERMS_RESET=no
- To skip Windows Updates (don't attempt to run Windows Update) change this to
yes:
set SKIP_WINDOWS_UPDATES=no
- To display as much output as possible (verbose), change this to yes:
set VERBOSE=no
- To have Tron delete itself after running (self-destruct), change this to yes
:
set SELF_DESTRUCT=no
INTEGRITY:
In every release 'checksums.txt' is signed with my PGP key (0x07d1490f82a211a2,
included). You can use it to verify package integrity.
LICENSE:
Tron and any included subscripts and .reg files I've written are free to use/red
istribute/whatever under the MIT license. It'd be nice if you sent an email and
let me know if you do something cool with it, but it's not required. Any of the
sub-tools Tron calls (TDSSK, MBAM, etc) are bound by their respective licenses.
It is YOUR responsibility to determine if you can use them in your specific situ
ation.
OTHER:
I try to keep everything updated. If you notice some of the packages are out of
date, PM me on reddit or send me an email (listed above), I respond pretty quick
ly most days.
Hope this is helpful to other PC techs,
- Vocatus
If you feel overly charitable:
1LSJ9qDzuHyRx6FfbUmHVSii4sLU3sx2TF
#########################
# FULL TRON DESCRIPTION #
#########################
The best way to see what Tron does is simply to crack open Tron.bat with a text
editor (preferably one with syntax highlighting) or on Github and just read the
code. Every section has comments explaining exactly what it does, and you don't
need to be able to read code to understand it. However, barring that, here's a g
eneral description of every action Tron performs.
tron.bat
Master script that launches all other tools. It
performs a lot of actions on its own, but for any task we can't perform directl
y, we call an external utility or script
Tron-internal prep jobs:
(These are all executed even if Tron is canceled before running)
. Detect Windows version
Determines quite a few things in the script, su
ch as which versions of various commands get executed
. Detect SSD
Detect solid state hard drives. If found, tron
skips the Stage 5 defrag
. Detect free space
Detect and save available hard drive space to c
ompare against later. Simply used to show how much space was reclaimed; does not
affect any script functions
. Detect resume
Detect whether or not we're resuming after an i
nterrupted run (e.g. from a reboot)
. Enable F8 Safe Mode selection Re-enable the ability to use the F8 key on boot
up (Windows 8/8.1 only; enabled by default on Server 2012/2012 R2)
. Check for update
Use wget to pull down sha256sums.txt from the T
ron mirror and see if we're on the current version. Tron will ask to automatical
ly download the newest version. If you answer yes, it will download a copy to th
e desktop, verify the SHA256 hash, and then self-destruct the current copy
. Detect Administrator rights Detect whether or not we're running as Administ
rator and alert the user if we're not
. Detect Safe Mode
Detect whether or not we're in Safe Mode and no
tifies the user if we're not
. Make log directories
Create the master log directory and sub-directo
ries if they don't exist
STAGE 0: Prep
. Create RunOnce entry
Create the following registry key to support re
suming if there is an interruption: HKCU\Software\Microsoft\Windows\CurrentVersi
on\RunOnce /v "tron_resume" /t REG_SZ /d "%~dp0tron.bat %-resume"
. Create System Restore point Windows Vista and up only; client OS's only (no
t supported on Server OS's). Tron creates a system restore snapshot before begin
ning operations
. Rkill
rkill is an anti-malware prep tool; it looks fo
r and kills a number of known malware that interfere with removal tools. Rkill w
ill exclude any process listed in \resources\stage_0_prep\rkill\rkill_process_wh
. Metro de-bloat
Remove built-in Metro apps that no one uses (pr
ograms like Calculator, Paint etc are NOT removed). Purges them from the cache (
can always fetch from Windows Update later).
STAGE 3: Disinfect
. RogueKiller
anti-rootkit utility and anti-malware prep tool
. Similar to rkill
. Malwarebytes Anti-Malware
Anti-malware scanner. Because there is no comma
nd-line support for MBAM, we simply install it and continue with the rest of the
script. This way a tech can click "scan" whenever they're around, but the scrip
t doesn't stall while waiting for user input. Using Tron's -sa flag skips this c
omponent
. Kaspersky Virus Removal Tool Command-line anti-virus scanner. Using Tron's sa flag skips this component
. Sophos Virus Removal Tool
Command-line anti-virus scanner. Using Tron's v flag gives more verbose output. Using Tron's -sa flag skips this component
. DISM image check & repair
Microsoft utility for checking the Windows Imag
e Store (basically like System File Checker on crack). Windows 8 and up only
STAGE 4: Repair
. Registry permissions reset
Grant SYSTEM and Administrator users full permi
ssions on HKLM, HKCU, and HKCR hives. This is an add-only permissions operation
(does not remove any permissions). Using Tron's -srr flag skips this operation
. Filesystem permissions reset Grant SYSTEM and Administrator users full permi
ssions on everything in the %WinDir% directory tree. Using Tron's -sfr flag skip
s this operation
. System File Checker
Microsoft utility for checking the filesystem f
or errors and attempting to repair if found. Tron runs this on Windows Vista and
up only (XP and below require a reboot)
. chkdsk
Checks disk for errors and schedules a chkdsk w
ith repair at next reboot
STAGE 5: Patch
Tron installs or updates these programs:
. 7-zip
Open-source compression and extraction tool. Fa
r superior to just about everything (including the venerable WinRAR). Using Tron
's -sp flag skips this component
. Adobe Flash Player
Used by YouTube and various other sites. Using
Tron's -sp flag skips this component
. Adobe Reader
Standard PDF reader. Using Tron's -sp flag skip
s this component
. Java Runtime Environment
I hate Java, but it is still widely used so we
at least get the system on the latest version. Using Tron's -sp flag skips this
component
. Windows updates
Self-explanatory
. DISM base reset
Recompile the "Windows Image Store" after we fi
nished purging old files from it earlier. Windows 8 and up only
STAGE 6: Optimize
. Page file reset
Reset the system page file settings to "let Win
dows manage the page file." Accomplished via this command: %WMIC% computersystem
where name="%computername%" set AutomaticManagedPagefile=True. Using Tron's -sp
r flag skips this action
. Defraggler
Command-line defrag tool from Piriform that's a
little faster than the built-in Windows defragmenter
STAGE 7: Wrap-up
. email_report
Sends an email report with log file when Tron f
inishes. Requires you to specify your SMTP settings in \resources\stage_6_wrap-u
p\email_report\SwithMailSettings.xml
. generate summary logs
If selected with -gsr flag or GENERATE_SUMMARY_
LOGS variable, Tron will generate before and after logs detailing which files we
re deleted and which programs were removed. These are placed in LOGPATH\tron_sum
mary_logs. Additionally, if -er flag was used or EMAIL_REPORT variable was set,
these logs will be attached to the email that is sent out
STAGE 8: Manual tools
Tron does not run these automatically because m
ost of them don't support command-line use, or are only useful in special cases
. ADSSpy
Scan for hidden NTFS Alternate Data Streams
. AdwCleaner
Popular user-suggested adware removal tool
. aswMBR
Rootkit scanner
. autoruns
Examine and remove programs that run at startup
. ComboFix
The "scorched-earth policy" of malware removal
. PCHunter
Tool to scan for rootkits and other malicious i
tems. Replaces gmer
. Junkware Removal Tool
Temp files and random junkware remover
. Net Adapter Repair
Utility to repair most aspects of Windows netwo
rk connections
. ServicesRepair.exe
ESET utility for fixing broken Windows services
. TempFileCleaner
OldTimer utility for cleaning temp files
. UserBenchMark.exe
Quick automatic system benchmark utility, compa
res the system to an online database of similar systems
. VirusTotal uploader tool
Uploads a file directly to VirusTotal for scann
ing