Skip to main content

Soji - Disk Space Management

Summary

This is an Automate script intended to execute the Soji application found in the GitHub repository.

Note: Soji is a destructive application by nature in that it deletes files and folders. Take great care when using the --days, --systempaths, and --userpaths arguments.

Sample Run

Sample Run

Please refer to the Soji documentation for argument options.

Dependencies

Variables

NameDescription
ProjectNameSoji
WorkingDirectoryC:\ProgramData_automation\app\Soji
EXEPathC:\ProgramData_automation\app\Soji\Soji.exe
LogPathC:\ProgramData_automation\app\Soji\SojiLogs\SojiLogs.Zip

User Parameters

NameExampleRequiredDescription
Arguments--drives c,f --jsonFalsePlease refer to Soji for argument usage.

Output

  • Script log
  • Desired file output to the Soji directory, e.g., JSON, etc.
  • On LabTech server: %LTShare%/Uploads/%ClientName%/%ComputerName% - %ComputerId%/SojiLogs.zip

Changelog

2026-03-23

  • Updated .Net8 Desktop Runtime installation logic to install the latest available version.

2025-04-10

  • Initial version of the document