Answer: Set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` in your environment or in `settings.json` to enable the PowerShell tool in Claude Code. Status: Confirmed Entry: tool/claude-code/settings/enable-powershell-tool Revision: 3 Digest: sha256:d72b5474e204f1b4 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:06:00Z Last changed: 2026-11-20T12:25:55Z (PowerShell version required on Linux, macOS, and WSL: — → PowerShell 7 or later) Last verified: 2026-11-20T12:25:55Z Next check: 2026-11-21T12:25:55Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Environment variable | CLAUDE_CODE_USE_POWERSHELL_TOOL=1 | [1] | 2026-11-20 settings.json value | 1 | [1] | 2026-11-20 Disable on Windows | 0 | [1] | 2026-11-20 PowerShell version required on Linux, macOS, and WSL | PowerShell 7 or later | [1] | 2026-11-20 Execution policy respect variable | CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1 | [1] | 2026-11-20 Sources: [1] Anthropic. "Tools reference". https://code.claude.com/docs/en/tools-reference.md Role: primary. Accessed: 2026-11-20T12:25:55Z Quote: "Set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` in your environment or in `settings.json`:" (Supports: Environment variable) Quote: ""CLAUDE_CODE_USE_POWERSHELL_TOOL": "1"" (Supports: settings.json value) Quote: "On Windows, set the variable to `0` to turn the tool off." (Supports: Disable on Windows) Quote: "On Linux, macOS, and WSL, the tool requires PowerShell 7 or later: install `pwsh` and ensure it is on your `PATH`." (Supports: PowerShell version required on Linux, macOS, and WSL) Quote: "To respect the machine's effective execution policy instead, set `CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1`." (Supports: Execution policy respect variable) Published: 2026-11-20T02:54:52Z Snapshot SHA-256: b70a0f34f42a2adc0e99e9442dcf08c4ac58e9dd5e60f4a16e79bad9f5d37304 (captured 2026-11-20T12:25:55Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:55Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:55Z Last attempt: 2026-11-20T12:25:55Z Notes and limitations: Extracted automatically from a single official source (section "Enable the PowerShell tool"). Related: https://latestn.com/tool/claude-code/settings/enable-remote-control-all-sessions How do I enable Remote Control for all Claude Code sessions by default? https://latestn.com/tool/claude-code/settings/enable-vim-mode How do I enable Vim keybindings in the Claude Code prompt? https://latestn.com/tool/claude-code/settings/env-var-precedence When an environment variable and a settings file both set the same Claude Code behavior, which value takes precedence? https://latestn.com/tool/claude-code/settings/enable-disable-mods How do I turn mods on or off in Claude Code? https://latestn.com/tool/claude-code/settings/enable-fullscreen-rendering How do I enable fullscreen rendering in Claude Code? https://latestn.com/tool/claude-code/settings/enable-marketplace-auto-update How do I turn on auto-update for a Claude Code plugin marketplace? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:25:55Z | changed | PowerShell version required on Linux, macOS, and WSL: — → PowerShell 7 or later | [1] 2026-11-20T12:25:55Z | changed | Disable on Windows: — → 0 | [1] 2026-11-20T12:25:55Z | changed | settings.json value: — → 1 | [1] 2026-11-20T12:25:55Z | changed | Environment variable: — → CLAUDE_CODE_USE_POWERSHELL_TOOL=1 | [1] 2026-11-20T12:25:55Z | changed | PowerShell version required on Linux, macOS, WSL: PowerShell 7 or later → — | [1] 2026-11-20T12:25:55Z | changed | Disable value on Windows: 0 → — | [1] 2026-11-20T12:25:55Z | changed | Enable variable: CLAUDE_CODE_USE_POWERSHELL_TOOL=1 → — | [1] 2026-11-16T12:13:07Z | changed | PowerShell version required on Linux, macOS, WSL: — → PowerShell 7 or later | [1] 2026-11-16T12:13:07Z | changed | PowerShell version required (Linux, macOS, WSL): PowerShell 7 or later → — | [1] 2026-11-13T03:06:00Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/enable-powershell-tool/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/enable-powershell-tool POST: https://latestn.com/dispute/tool/claude-code/settings/enable-powershell-tool with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/enable-powershell-tool?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable the PowerShell tool in Claude Code? Revision 3, last verified 2026-11-20T12:25:55Z. https://latestn.com/tool/claude-code/settings/enable-powershell-tool (accessed 2026-11-21T09:52:32Z). @misc{LatestN_tool_claude_code_settings_enable_powershell_tool_r3, title = {How do I enable the PowerShell tool in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/enable-powershell-tool}}, note = {Revision 3; digest sha256:d72b5474e204f1b4; last verified 2026-11-20T12:25:55Z; accessed 2026-11-21T09:52:32Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/enable-powershell-tool