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.326 ·

PowerShell commands that can load code while being read are refused

Claude Code now refuses PowerShell commands with using module, using assembly, #requires or Import-DscResource instead of analysing them

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

Unclear This sits behind a remote switch whose default is not known, so whether the refusal applies to you is unclear.

What

Before running a PowerShell command, Claude Code reads it to decide whether it needs your permission. It no longer reads commands that contain any of these, and refuses them instead:

  • using module
  • using assembly
  • #requires
  • Import-DscResource

PowerShell can load and run code just from reading these lines, before the command itself runs.

Why

This closes a gap in permission checking: simply examining such a command could run code you never approved. If your commands rely on these lines, expect them to be refused.

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 doubtThis sits behind a remote switch whose default is not known, so whether the refusal applies to you is unclear.

See this entry in the whole of v2.1.326 →

Feedback