Unclear One further condition for showing the warning could not be identified.
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.
It explains why Claude suddenly cannot run any commands on Windows, and tells you how to get PowerShell back.
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.
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
One further condition for showing the warning could not be identified.
Anthropic's documentation has since written up CLAUDE_CODE_USE_POWERSHELL_TOOL, on Error reference.