Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.84 ·

PowerShell Tool (Windows)

Entry
JSON All of v2.1.84
EntryKind: in v2.1.84,
ChangesSection of the release
What

A dedicated PowerShell command execution tool for Windows users, providing native PowerShell syntax support with comprehensive security analysis.

Details
  • Enabled via the CLAUDE_CODE_USE_POWERSHELL_TOOL environment variable on Windows
  • Uses pwsh (PowerShell 7+) for command parsing and execution
  • Full AST-based security analysis of PowerShell commands before execution
  • Validates PowerShell-specific patterns: cmdlet names, parameter types, pipeline chains, .NET type usage, script blocks
  • Recognizes dangerous patterns: Invoke-Expression, encoded commands, COM object creation, module loading, splatting, UNC paths
  • Read-only cmdlets (e.g. Get-ChildItem, Get-Content, Select-String, Get-Process) are auto-allowed
  • Handles PowerShell-specific security concerns: -FilePath execution, -Command re-invocation, Start-Process nesting
  • Provides PowerShell syntax guidance in tool description (variable syntax, pipe objects, here-strings, cmdlet naming)
  • Falls back gracefully if PowerShell is not installed
  • Enterprise policy enforcement: sandboxing policy blocks shell execution on native Windows when sandbox is unavailable
Evidence

PowerShell tool implementation (search for "PowerShell command", "CLAUDE_CODE_USE_POWERSHELL_TOOL", "Run PowerShell command")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.84 →

Feedback