ryanblenis / MeshCentral-ScriptTask

Scripting plugin for MeshCentral
Apache License 2.0
55 stars 15 forks source link

Repeating Scripts being saved in the Mesh Agent folder and filling up the client disk #46

Open fireball8931 opened 9 months ago

fireball8931 commented 9 months ago

Please see https://github.com/Ylianst/MeshCentral/discussions/5850 And console.txt

I discovered that a bunch of client devices had multiple Gigabytes worth of ps1 and txt files in the Mesh Agent folder on the C:\ drive going back a couple of years.

After posting to the MeshCentral issues page, we discovered that the most recent ps1 and txt files were from July 2023, which is around the time I stopped using this plugin because I switched to using Proactive Remediations in Microsoft Intune.

We figured out it had to be this plugin because it saves ps1 and txt files to, you guessed it, the Mesh Agent folder.

You probably should build in some garbage collection to prevent these files from filling up client disks. It also might be a security issue leaving all these scripts in an easy to find location that users have access to.

The fix on my end was to stop using the plugin and purge the c:\Program Files\Mesh Agent\ folder of all the ps1 and txt files

diegogyn commented 2 months ago

Good to know, I'll check my folders, if this is really happening I should disable the plugin and look for another alternative until this problem is resolved.