bmrf / tron Goto Github PK
View Code? Open in Web Editor NEWTron
Home Page: https://old.reddit.com/r/TronScript
License: MIT License
Tron
Home Page: https://old.reddit.com/r/TronScript
License: MIT License
downloaded from https://github.com/bmrf/tron/tree/master/resources/stage_4_repair/disable_windows_telemetry
Unfortunately no logs files are found
Hi, i am the real author of original translation readme to russian.
I asked user conformist to upload it to the github, coz i did not has an account back in time,
Now i do have an account, and see that Tron project is updating, and readme as well, but i have not see the updates and changes, do not know how much is changed from my tranlation.
My question is, do i need update russian readme?
This is much faster when it comes to removing applications than the way it is being done (when by name.)
The current way to do it runs a WMI command for every entry in the text file, which takes a lot of time. I wrote this so that instead, it grabs the full list of installed applications, and sorts them from the list, and only runs removal commands on those entries in particular.
It's implementation will require you to re-format your list I think, but it will be well worth it for overall time saved on slower machines.
https://www.mediafire.com/?c21vc4dsxp810wo
I can also write an application that will do fast GUID sorting and removal, if you wish.
Currently wants .net 4.5.1, but I can compile it for .net 4 as well.
@vocatus
I believe that like all good "programs" Tron should have a "Identity" Disc. This can be a script of frequently used 'tools' that Tron can use to fight for the Users.
One such 'tool' could be:
:: Pause X
:tron_wait_x
ping -n %1 localhost >nul
goto :EOF
This could be called from the different batch files.
Instead of having in the script
ping 127.0.0.1 -n 180 > nul 2>&1
you could have
call "functions\tron_disc.bat" tron_wait_x 180
Another tool could be determining "Bitness" of the system.
Set "_Bitness=64"
IF "%PROCESSOR_ARCHITECTURE%" == "x86" (
IF NOT DEFINED PROCESSOR_ARCHITEW6432 Set "_Bitness=32" )
Then all scripts that require the information could just check for the "%_Bitness%" variable.
When I run tron it says that it hasn't detected my SSD and so runs defrag. My XPS 13 has a 256GB Samsung M.2 PCIe SSD
Can we add manual settings to not kill certain processes for Terminal server/remote admin sessions? It would be nice to add a flag -e teamviewer.exe screenconnect.exe kaseya.exe Mass killing of processes on a terminal server can be dangerous especially with a few hundred users connected.
Thanks
in the GUID files programs_to_target_by_GUID.txt
there are GUIDS that are commented out need to have a space after the ::
or it will still show them/attempt to remove them too..
i would also have a space after the section spectator thing too.. the prep title thing and the guid list thing too
Example
::{07F2005A-8CAC-4A4B-83A2-DA98A722CA61}
(Currently)
:: {07F2005A-8CAC-4A4B-83A2-DA98A722CA61}
(Should be)
check line 334 of tron.bat
echo Tron will still function find, but if you still have
should be
echo Tron will still function fine, but if you still have
I've had a pretty good experience with SDI and it seems like this might be a good feature to implement at the end of the cleaning process
SDI also provides a few CLI options - http://snappy-driver-installer.sourceforge.net/en/usage.php
It was updated last 10 months ago, if I assume correctly from GitHub. Maybe it's time to update it and enable more cleaning in ccleaner.ini?
This is really the same as pplude/TronScriptEvo#4 but to sum it up, please be more specific with the commit messages. Trying to find when something changed is MUCH harder when commit messages only show the version number.
https://www.reddit.com/r/TronScript/comments/3oabz2/please_whitelist_ebay_blackthorne_on_debloat/
Would you like it if I added a whitelist option to my quick removal application?
Using tron -a, it fails to set safe mode with networking on XP, due to 'bcdedit' not being found.
After using tron a few times I've come to the conclusion that it would be nice to be able to pull the browser histories (via nirsoft's browsinghistoryview.exe) and the last activity (via lastactivityview.exe) from the machine before clearing them out in stage 1. These could/would be helpful in determining if the issue is due to bad user habits that require some retraining or some other nefarious activity.
Two ideas, which would drastically improve usefulness in regards to new computer setups, as opposed to only repair situations.
Add flags to run specific sections of bloat removal(for example, I wouldn't need to run toolbar removals, since it's a brand new unit, and in 99.99999999% of cases, there are no included toolbars. In fact, toolbars on Windows 10 are rare in general.
I would, however, benefit from the Metro removals and the GUID removals(for the OEM included software)
Separate software into separate lists - One for general and one for OEM included software. Reasons are the same as above - a fresh HP or Dell unit(for example) would have some OEM garbage on it, but would not have any general unwanted software.
Granted, this would take some time, and community involvement in identifying what's what. But in the long run, would make an excellent addition to part 1 of this suggestion.
So I just tried this out today and it seems like it skipped the first 2 stages and now its stuck on stage 3
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
2015-06-29 20:08:18.16 ! Incomplete run detected. Resuming at stage_3_disinfect using flags "0"...
The system cannot find the drive specified.
Disk space reclaimed: 0 MB *
Logfile: C:\Logs\tron\tron.log
* If you see negative disk space don't panic. Due to how some of Tron's
functions work, actual disk space reclaimed will not be visible until
Disk space reclaimed: 0 MB *
Logfile: C:\Logs\tron\tron.log
* If you see negative disk space don't panic. Due to how some of Tron's
functions work, actual disk space reclaimed will not be visible until
Disk space reclaimed: 0 MB *
Logfile: C:\Logs\tron\tron.log
* If you see negative disk space don't panic. Due to how some of Tron's
functions work, actual disk space reclaimed will not be visible until
And it just continues with that.
If you need more info let me know.
Something in the telemetry removal is causing a not internet icon.. i think it's a setting in o&o shutup or spybot anti-beacon. (Not able to test which one is causing it atm, but if i find out i'll let you know)
the registry entry that gets changed is
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet]
"EnableActiveProbing"=dword:00000001
^it gets changed to a 0, when it's a 0 it does not check for the internet which does cause problems with some programs
Error message: VERBOSE (-v) output requested but not support by ccleaner
The filenames that are shipped with the current release of tron don't match the ones in resources\stage_5_patch\adobe\flash_player\Adobe Flash Player Installer.bat
git expects install_flash_player_26*, release v10.4.8 expects install_flash_player_27* but has 28 in the filename, and thus probably won't install correctly.
Reference:
Basically I'd like a flag to forbid Stage 1 steps 4/6 to remove anything inside the C:\Users directory. I'm not sure if it's best to just have a flag to just skip the entire thing, or if it's worth having ability to choose
Thanks,
Michael
The application has failed to start because its side-by-side configuration is incorrect.
Please see the application event log or use the command-line sxstrace.exe tool for more detail.
This occurs when running tron from both safe-mode and normal boot, and when running the .exe manually.
Not sure if this is an issue or a limitation. If it's an issue (close otherwise):
Stage 2 launches MWB, but does not start scanning. The CMD window shows that it's starting MWB, then says Done immediately after launching and moves on.
Running Tron 3.5 (4 hours in) on a bitcoin-mining rootkit (nasty) infected computer (Win 7 Enterprise).
Line 24: (App)Hotfix Uninstallers=True will bake in windows updates, creating similar situation to Issue #35 .
Line 32: WipeFreeSpaceDrives=C:\ removes Restore Points (http://forum.piriform.com/index.php?showtopic=38712&p=235275)
Line 41: AutoClose=0 maybe we can change value to 1?
Line 42: BackupPrompt=1 maybe we can change value to 0?
RogueKiller (CMD version?), Ucheck for software updates automation.
Hi,
I'm trying to run your program.
But it stucks in the beginning.
In the log file its showing below code 1000+ times
2015-05-03 22:51:44,42 Resetting Windows power settings to defaults...
2015-05-03 22:51:44,43 Done.
Disk space reclaimed: 0 MB *
Logfile: C:\Logs\tron\tron.log
* If you see negative disk space don't panic. Due to how some of Tron's
functions work, actual disk space reclaimed will not be visible until
Safe Mode: yes NETWORK
2015-05-03 22:51:45,65 Launch job 'Dism Windows image check (Win8/2012 only)'...
2015-05-03 22:51:45,65 Done.
2015-05-03 22:51:45,66 Done.
2015-05-03 22:52:11,25 Resetting Windows power settings to defaults...
2015-05-03 22:52:11,25 Done.
Disk space reclaimed: 0 MB *
Logfile: C:\Logs\tron\tron.log
The README says this:
Detect Safe Mode: Detect whether or not we're in Safe Mode and notify the user if we're not. If not, Tron will prompt to automatically reboot into Safe Mode with Networking.
However, it also says that this no longer occurs. Should this be updated?
Reference: http://ss64.com/nt/syntax-redirection.html
Example: https://github.com/bmrf/tron/pull/56/files#diff-bc58a3877fd21a346ef229f4f6d0328fL209
It might be a good idea to avoid issues like this.
I've started this as an issue for discussion before putting the work into making all the changes. I don't mind doing it, but I'd like to know if anyone else has any input.
As detailed here, sometimes the keys in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\
can get corrupted/deleted. It would be nice if Tron could automatically fix these types of issues.
tron/resources/stage_1_tempclean/tempfilecleanup/TempFileCleanup.bat
Lines 233 to 235 in 03b6007
In file TempFileCleanup.bat in lines 233-235 the CBS logs cleanup is described.
In line 234 it states, that it looks for Vista OS or newer (without Microsoft in OS name) and deletes CBS folder contents.
However line 235 checks for name "server" in the OS name. As it is stated in the comments text, perhaps it should check for winver not containing word Microsoft?
On Windows 10 Pro C:\Windows\Logs\CBS folder was not cleaned.
Line 1126 of tron.bat, following command is run:
Dism /Online /Cleanup-Image /StartComponentCleanup
All existing service packs and updates cannot be uninstalled after this command is completed. As this is a stage 3 operation, and telemetry removal is stage 4, this means that any telemetry updates currently installed will be locked into the system until format.
Would it be possible to have Tron download the external tools that it uses, rather than packaging them together with the bat files?
In the most recent tron builds there is a Text file containing quotes from reddit users that are completely unprofessional. I keep a copy of tron on a flash drive and recently updated it. Today we were training a new hire and some one opened the file only to be greeted by a fair number of Inappropriate quotes.
I do the correctly start mode for the Tron.bat but in middle of the malware secction (30 minutes aprox.), say me doesn't run like that, why happend that?
Sorry if its already in but I did not see it when looking quickly at what things do by description.
Hello, I would like to collaborate with the Spanish translation, is it done?
Let me know if its okay for me to add the info here,
I dont know a scripting language well enough to contribute code but I can say for example something like an evironmental variable
devmgr_show_nonpresent_devices=1
Should be added in System properties under System variables. This shows extra things in Device Manager including potentially old rootkits or if someone has plugged in and removed a USB.
If its okay I have a good amount of info to add but just not in code form.
I've been using this program in the past for manual removal of Crapware and unneeded programs.
In my opinion it would be nice if BCUninstaller would be in the manual tools folder so other people can enjoy using it as well.
Bulk Crap Uninstaller (or BCUninstaller) is a free (as in speech) program uninstaller. It excels at removing large amounts of applications with minimal user input. It can clean up leftovers, detect orphaned applications, run uninstallers according to premade lists, and much more! Even though BCU was made with IT pros in mind, by default it is so straight-forward that anyone can use it.
BCU is fully compatible with Windows Store Apps, Steam, Windows Features and has special support for many uninstalling systems (NSIS, InnoSetup, Msiexec, and many other).
Every time I run stage 2 and it gets to phase 3 it says "error: Discription = Shutting Down" There are no error codes or anything to let me know why it's doing this. I'm going to skip de-bloat for now so it will finish but I'd really like to see this working. Let me know if there is anything I can do to expedite this issues resolution.
Tried to run this on a SQL Server machine and received the error:
Tron does not support "%WIN_VER%" (yet).`
If you want to override and run anyway, re-run
Tron from the command-line with the -dev flag.
Ran Tron with -dev
but the message persists.
-dev
to Tron.Expected behavior: [What you expect to happen]
Applying the -dev
flag should be respected to override the supported version if the help message provides this method as a solution.
Actual behavior: [What actually happens]
Applying the -dev
flag is not respected, and works as though it had not been provided.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
You can get this information from the library being used that is causing the issue. Also, please include the OS and what version of the OS you're running.
Version Information:
set SCRIPT_VERSION=1.1.2
set SCRIPT_DATE=2018-03-15
Operating System:
Windows Server 2016
Any additional information, configuration or data that might be necessary to reproduce the issue.
Additional settings are not being respected because the prerun_checks_and_tasks
function is called before parse_cmdline_args
.
I am submitting a pull request, but wanted an issue to tag it with.
Hey there.
Firstly, thanks to vocatus and the community for a great tool. I've spent the last day or so going through it in detail and it looks incredibly promising. However, I've since noticed a few things I'd like to prevent from running; these are the System File Checker, the execution of TempFileCleanup.bat, and the Repair File Extensions step.
Looking into the source code of TempFileCleanup.bat tells me that some things it's doing are a little too aggressive for my liking, from deleting browser temp files and useful logs, to deleting default Windows 7 backgrounds, to emptying search caches and the Recycle Bin.
Likewise with Repairing File Extensions; I really don't want to undo years of assigning extensions to certain programs by having everything restored to factory settings, especially when I'm certain nothing about the extensions are broken. This again feels more aggressive than it needs to be, especially without a switch to disable the behaviour.
I've been unable to find switches in the documentation to disable the above steps. Is it possible that these can be added to Tron?
For now, I'm making do with editing the batch files to remove/alter the respective stages directly, but this is a short-term solution and it would be really great to be maintain a single copy of Tron and use command-line switches to disable any of the above behaviours as needed.
Thank you.
The command rmdir /s /q "%userprofile%\AppData\Local\Microsoft\OneDrive"
produced these errors:
AppData\Local\Microsoft\OneDrive\173681~1.031\amd64\FileSyncShell64.dll - Access is denied.
AppData\Local\Microsoft\OneDrive\173681~1.031\amd64\LoggingPlatform64.dll - Access is denied.
AppData\Local\Microsoft\OneDrive\173681~1.031\amd64\msvcp120.dll - Access is denied.
AppData\Local\Microsoft\OneDrive\173681~1.031\amd64\msvcr120.dll - Access is denied.
This could be addressed by using MoveFile, so https://github.com/bmrf/tron/blob/master/resources/stage_2_de-bloat/stage_2_de-bloat.bat#L366-L368 would become:
rmdir /s /q "%LocalAppData%\Microsoft\OneDrive" >> "%LOGPATH%\%LOGFILE%" 2>&1
rmdir /s /q "%ProgramData%\Microsoft OneDrive" >> "%LOGPATH%\%LOGFILE%" 2>&1
rmdir /s /q "%SystemDrive%\OneDriveTemp" >> "%LOGPATH%\%LOGFILE%" 2>&1
path\to\movefile "%LocalAppData%\Microsoft\OneDrive" "" >> "%LOGPATH%\%LOGFILE%" 2>&1
path\to\movefile "%ProgramData%\Microsoft OneDrive" "" >> "%LOGPATH%\%LOGFILE%" 2>&1
path\to\movefile "%SystemDrive%\OneDriveTemp" "" >> "%LOGPATH%\%LOGFILE%" 2>&1
I would submit a patch, but MoveFile isn't in tron yet (but Sysinternal's Autoruns is).
I'd like to run only the bits that don't want a commercial license.
Right now I can get most of it through the use of the following switches:
-sm, -sk, -ss (basically, -sa)
What this patch[1] currently does:
Add a switch for SKIP_PROPRIETARY -- might want to change to SKIP_NONCOMMERCIAL
When SKIP_PROPRIETARY is yes, run the built in windows defragger, skip the antivirus scans, and (when re-enabled) skip CCleaner.
What I'm trying to do: add the ability to skip programs that want a license to run in a commercial setting while still (in some cases) getting things done.
Before I get much further into the weeds, I'd like to know if this is something that would be accepted.
Things missing in patch [1]:
Stages that probably don't have to be changed:
Stages that probably have to be changed:
[1] https://github.com/tsmock/tron/tree/proprietary
[2] https://www.reddit.com/r/TronScript/comments/3dicb6/flag_that_doesnt_include_licensed_programs/
[3] https://www.clamav.net/
Just tested this on my computer and when it ran through this step, the entries in the file "programs_to_target_by_name.txt" that contain spaces are considered only to be the first item. The syntax
for /f %%i in (filename) do ( echo %%i )
only echos the first word of the line. Using
for /f "tokens=*" %%i in (filename) do ( echo %%i )
captures the whole line, but this does not allow to test the beginning of the line for your :: and set cases as they stand. You can echo the variable and pipe that to findstr and see if it contains the :: or set, perhaps
Ran into this as an issue because when testing for "AVG PC TuneUp%%" it began to uninstall "AVG" as that was the match it found, and corrupted the install, with the computer/AVG forcing a reboot
Based on this article defraggler should be run using df.exe, not defraggler.exe. I can make a PR to correct this, but I wanted to open it up to discussion in case anyone else has more experience with this tool and maybe I'm missing something.
I have tested Tron's syntax and all it does is open the Defraggler interface, but replacing defraggler.exe with df.exe and including the same command line switches seems to work just fine.
Following the procedure outlined here allows Tron to uninstall things as expected under Safe Mode/Safe Mode with Networking. Otherwise uninstallation fails on the vast majority of items that would otherwise be removed.
Tested on two HP Elitebooks running Windows 7 and a Toshiba laptop running Windows 10, problem occurred in all three cases.
I think adding
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service"
somewhere in Stage0, or in Stage2 prior to calling the debloat scripts would probably resolve this.
OneDrive removal is skipped if the OneDrive folder is not empty. Unfortunately it often contains a desktop.ini
file just to give the folder a pretty icon, preventing removal.
readme says to copy tron bat and resources folder to target machine. where is this resources folder at? It is not in the provided zip. Is it something I have compose my self or am I missing a link some where?
On line 1046 shouldn't the command be:
if /i %DRY_RUN%==no call resources\stage_2_de-bloat\oem\programs_to_target_by_GUID.bat >> "%LOGPATH%%LOGFILE%" 2>&1
where the current line reads:
if /i %DRY_RUN%==no call stage_2_de-bloat\oem\programs_to_target_by_GUID.bat >> "%LOGPATH%%LOGFILE%" 2>&1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.