Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.287 ·

Windows warning when blocking Bash also turns off PowerShell

On Windows, Claude Code now warns that a Bash deny rule also removes the PowerShell tool, leaving Claude with no shell

You'll notice Improvements
JSON All of v2.1.287
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
WindowsArea: what it touches
ImprovementsKind: in v2.1.287,
ImprovementsSection of the release

Unclear One further condition for showing the warning could not be identified.

What

On Windows, Claude Code can add a PowerShell tool automatically so Claude can run commands. A deny rule is a setting that blocks Claude from using a tool. If you have a deny rule for Bash, it also turns off that automatically added PowerShell tool, and Claude Code now shows a warning about it. The warning says Claude has neither shell tool, and that to use PowerShell you can set CLAUDE_CODE_USE_POWERSHELL_TOOL=1.

The warning is not shown when the deny rule comes from policy settings, which are settings managed by an administrator.

Why

It explains why Claude suddenly cannot run any commands on Windows, and tells you how to get PowerShell back.

Read from
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up CLAUDE_CODE_USE_POWERSHELL_TOOL, on Error reference. Denying Bash also turns off the PowerShell tool, so Claude has neither. To use PowerShell, set CLAUDE_CODE_USE_POWERSHELL_TOOL=1. errors see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtOne further condition for showing the warning could not be identified.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_USE_POWERSHELL_TOOL, on Error reference.

See this entry in the whole of v2.1.287 →

Feedback