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.