Skip to main content

Manage - Windows Installer Cache

Overview

The script performs a quarantine operation with force parameter to identify and isolate orphaned Windows Installer cache files, generates a manifest of the quarantined items, and then executes a deletion operation using the generated manifest. This staged approach provides a controlled and auditable remediation process while minimizing risk.

The implementation is designed for automated deployment, supports secure content delivery through code-signature validation, and helps reclaim disk space by safely removing orphaned Windows Installer cache files.

Dependencies

Implementation

  1. Download the component Manage - Windows Installer Cache from the attachments.

  2. After downloading the attached file, click on the Import button

  3. Select the component just downloaded and add it to the Datto RMM interface.
    Image 1

Sample Run

To execute the Manage - Windows Installer Cache over a specific machine, follow these steps:

  1. Select the machine you want to run the Manage - Windows Installer Cache on from the Datto RMM.

  2. Click on the Quick Job button.
    Image 2

  3. Search the component Manage - Windows Installer Cache
    Image 3

  4. Click on Select and then Run
    Image 4

Datto Variables

Variable NameTypeDefaultDescription
ForceBooleanFalseUse force includes UNVERIFIED files in quarantine operations. Without this Force switch, UNVERIFIED files are only logged in the CSV/JSON output and never quarantined.

Output

  • Activity log
  • C:\ProgramData_automation\script\Manage-WindowsInstallerCache-log.txt
  • C:\ProgramData_automation\script\Manage-WindowsInstallerCache-error.txt

Attachments

Manage-WindowsInstallerCache

Changelog

2026-07-03

  • Updated powershell script to use the Force parameter.
  • Added variable for Force parameter.

2026-06-15

  • Initial version of the document