Skip to main content

Troubleshooting

SymptomCauseFix
running scripts is disabled on this systemYou started windowsweep.ps1 directly under the default Restricted policyUse npx windowsweep, windowsweep.cmd, or powershell -ExecutionPolicy Bypass -File windowsweep.ps1 ...
REFUSE (inside protected: ...)The path resolves inside a protected folder, sometimes through a junction into your profileWorking as designed. --list-targets shows the protected list; nothing bypasses it
skipped: chrome is runningThe browser or app is open and holds its cacheClose it and run windowsweep --only 7 --yes (the section number is in the message)
needs Administrator rights - skippedThe console is not elevatedwindowsweep --only 12 --yes --elevate, or run the profile system with --elevate
The walkthrough needs an interactive consolestdin is redirected (a script, a Scheduled Task, CI)Use --all --yes, --only ... --yes, --scan or --dry-run
refused in batch mode without --i-understand-deepA deep section (11, 15, 16, 20) was named in --only or a profileAdd --i-understand-deep with --yes, or run it from the menu
section 17 is interactive-onlyPersonal sections never run unattendedRun windowsweep --only 17 from a console; --dry-run lists candidates
Reclaimed less than the dry-run estimatedFiles were created or locked between the two runs, or an app started in betweenRe-run; compare the log's skip (locked) lines
Reclaimed less than --scan showed on diskThe idle gate kept files used within the window; running apps were skippedLower --days, close the apps, or use --purge-all for a full clear
Docker daemon is not runningDocker Desktop is stoppedStart Docker Desktop and re-run section 5
elevation refused or failedThe UAC prompt was cancelled, or the account is a standard userApprove the prompt; a standard user needs an administrator to run the admin sections
Glyphs render as ? or boxesThe console font lacks the box-drawing characters--ascii, or WINDOWSWEEP_ASCII=1
An editor extension folder was removedThe editor's extensions.json no longer referenced it (uninstalled or superseded)Reinstall the extension from the editor; the tool never removes a referenced folder
Cypress/Playwright kept a version I expected to goOne file inside it was touched within the window, or it is the newest of its kindLower --days, or remove the version by hand
A crash bundle appearedThe run exited with an unexpected errorInspect ~\.windowsweep\feedback\crash-*.zip, then windowsweep --report-issue
npm ERR! notsup Unsupported platformInstalling on Linux or macOSThis package is Windows-only: use npx linux-cleanup or npx macleanup
'windowsweep' is not recognized as an internal or external command from npx windowsweepYou ran it inside a clone of this repository, whose own package.json is named windowsweep; npx picks that local package and finds no installed binRun npx windowsweep from any other directory, or node bin\windowsweep.js inside the clone

Every skipped or refused path is in the session log at %USERPROFILE%\.windowsweep\logs\ with its reason. The log records what happened; it undoes nothing. If your symptom is not in the table, start with that log. windowsweep --report-issue opens a pre-filled GitHub issue after you confirm.

Last Updated: 2026-09-05