A laptop displays a desktop-cleanup preview in PowerShell beside an AI assistant listing files for review.
I Used Claude Code To Debloat Windows 11, and the lesson is bigger than the cleanup. TechPP's Oct. 24 write-up describes an AI coding agent inspecting a Windows 11 laptop, proposing removals and tweaks, and generating PowerShell for the user to run. The author calls the result cleaner and more responsive. The write-up gives no benchmarks and does not show the scripts. Treat the outcome as one person's anecdote, not a tested method.

A laptop displays a desktop-cleanup preview in PowerShell beside an AI assistant listing files for review. What the author says happened​

TechPP's reviewer ran Claude Code from the Claude desktop app on Windows, pointed at a folder the user creates and marks as trusted. The first prompt was inspect-only. It asked Claude to review:

  • startup items
  • preinstalled apps
  • memory use
  • advertising, tips and tracking settings
  • a quick security check

It told Claude not to touch Windows Update, Microsoft Defender, the Microsoft Store or Edge WebView2.

On the author's single laptop, Claude reported:

  • 16 apps safe to remove, including Clipchamp, News, Weather, Solitaire, the new Outlook and Copilot
  • Edge set to start hidden at sign-in
  • most ad and tracking settings still switched on
  • about 2.5 GB of temporary files
  • 15 apps that did not need to run in the background

These are observations from one machine. The article does not give the Windows edition or build, the device, the package names, or the full app lists. Don't read them as typical Windows 11 defaults.

The workflow, step by step​

  1. Inspect first. Ask the agent to report only, and tell it which components are off-limits.
  2. Create a restore point. The author enables System Protection on C:, sets the usage slider to 5%, and creates a manually named point such as "Before Claude Cleanup".
  3. Let the agent act, or have it write a script. The author approves Windows permission prompts and says to decline any change you don't recognize.
  4. Clear temporary files in Settings > System > Storage > Temporary files, leaving Downloads unchecked.
  5. Reduce visual effects under Settings > Accessibility > Visual effects by turning off Transparency effects and Animation effects.
  6. Reboot and re-check. The author found Edge and OneDrive launching again and had to take extra steps.
  7. Generate a policy-style script to keep Copilot from returning.

The restore-point step matches Microsoft's guidance. Microsoft's System Protection documentation says restore points are snapshots of system files, installed apps, the registry and system settings. It also says the feature is not enabled by default. The same documentation says restore points let you revert the system without affecting personal data. The manual steps are: search "Create a restore point", open the System Protection tab, choose Configure to turn it on, then choose Create and name the point.

Where the story needs a seatbelt​

The agent's role is unclear​

The article says Claude can't directly modify Windows settings and so produces a script. Elsewhere it describes Claude performing the removals after the user approves prompts. The write-up doesn't explain which is true, or how the tool was configured. Another recent experiment shows the agent route is real. Mem's Tech Tips reported that Claude Code can run PowerShell, not just write code. That author called it an experiment, not a recommendation and advised running it only in a virtual machine. That is a more cautious framing than TechPP's.

Unseen scripts​

Neither the cleanup script, the personalization script, nor the Copilot-blocking script is shown. Nobody can verify what they change. Pasting them into PowerShell is a leap of faith. Read every line before running anything, and be especially wary of anything that touches services, scheduled tasks or registry policies.

The undo command​

The rollback command in the article uses -ExecutionPolicy Bypass. PowerShell's execution policy is not a security boundary, so Bypass mostly removes friction rather than adding risk by itself. The risk is that you are running a script you may not have read. Open Undo-WindowsCleanup.ps1, confirm what it does, and check that the path matches where your copy was saved. The article doesn't prove the undo script restores everything.

A restore point is not a backup​

Microsoft's documentation says restore points protect system state, not your files. They also won't bring back every app or setting you've removed. Back up your files separately before experimenting.

Safer ways to do the same jobs​

Several of these tasks have built-in controls that don't need a script.

  • Startup apps: Microsoft says you can manage them in Settings > Apps > Startup, or in Task Manager's Startup apps tab. Task Manager also shows each app's startup impact, rated from Low to High.
  • Temporary files: Storage Sense can clear temporary files automatically. Microsoft notes it works on the system drive only. It doesn't touch Downloads or cloud content unless you configure it to.
  • Edge: Microsoft describes Startup boost as keeping the browser running in the background with minimal processes so it opens faster, with a limited resource impact. You can turn it off at edge://settings/system/manageSystem. That is a convenience trade-off, not necessarily bloat. Enterprises can also set it through group policy.
  • Visual effects: Microsoft documents the Transparency effects and Animation effects toggles as ways to reduce visual distraction. Its documentation doesn't claim a speed gain. The TechPP piece itself concedes that hardware determines performance.

Debloating isn't new​

The author admits that most of these methods predate Claude Code. Open-source debloat scripts are plentiful, and some have added guardrails. WindowsForum has covered Win11Debloat, which now offers a registry backup. A source quoted there says the registry backup does not restore uninstalled applications. Another repository, SysAdminDoc's Debloat-Win11, includes a dry-run mode that scans and reports without making changes. That is the same inspect-first idea the TechPP author uses, and it comes with a published, reviewable script.

The difference with an AI agent is that the script is generated fresh for your machine. That can make it more tailored than a community tool, but it also means it has had no community scrutiny. A well-known open-source script has many eyes on it. A script an assistant wrote a minute ago has yours.

Caveats on the claims​

  • OneDrive: The author asks Claude to stop OneDrive from starting, and later to uninstall it. Preventing autostart is not the same as removing it. If your files sync through OneDrive, removal can cause real trouble.
  • Copilot "for good": The article says future updates may bring Copilot back and that a script can block it. It doesn't document the mechanism, the Windows version, or whether the block survives updates. Treat this as unverified.
  • Pricing: The article cites a $20 plan. Anthropic's documentation says Claude Code requires a Pro, Max, Team, Enterprise or Console account, and that the free claude.ai plan doesn't include it. Check current plan pricing yourself.
  • Managed PCs: If your device belongs to an organization, don't change services, policies or system components without talking to your IT administrator.

Practical takeaways​

  • Use the agent for inspection and explanation. That is where it lowers the command-line barrier most safely.
  • Keep removals small and reversible. Change one thing, reboot, and test.
  • Prefer Settings and Task Manager for simple jobs. Reserve scripts for bulk work, and read them first.
  • Take a restore point and a real file backup before you start.
  • Expect modest gains. Fewer startup items and a few gigabytes recovered are real but small, and no timings were published.

The TechPP experiment shows that natural-language prompts can make Windows tuning approachable. It does not show that the changes were safe for every PC or that they made it measurably faster. Treat the AI as a knowledgeable assistant that still needs a human to check its work.

 

References

  1. I Used Claude Code To Debloat Windows 11. Here is What Happened - TechPP TechPP 2026-10-24T15:28:27+00:00
  2. Advanced setup - Claude Code Docs docs.anthropic.com
  3. Powershell script to debloat Windows 11 LTSC · GitHub gist.github.com