The exact silent switches the M2 Repo Cleaner installer accepts, plus a one-line command you can paste into a script, Intune Win32 app, or Configuration Manager package.
M2RepoCleaner-1.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CURRENTUSER
Run from the directory containing M2RepoCleaner-1.1.exe. Download the installer from the Direct link below first.
| Architecture | Scope | Type | Silent switches | Source |
|---|---|---|---|---|
| x64 | user | EXE Inno Setup | Custom: /CURRENTUSER | Default for Inno Setup |
| x64 | machine | EXE Inno Setup | Custom: /ALLUSERS | Default for Inno Setup |
/S for NSIS, /quiet /norestart for MSI).Prefer the winget route? See the full M2 Repo Cleaner install page.