{"version":"2.1.326","anchor":"powershell-functions-that-shadow-dangerous-aliases-are-refu","canonical_anchor":"powershell-functions-that-shadow-dangerous-aliases-are-refu","heading":"PowerShell commands that redefine a risky command alias are refused","tier":"notice","area":"PowerShell","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/powershell-functions-that-shadow-dangerous-aliases-are-refu","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### PowerShell commands that redefine a risky command alias are refused\n\nClaude Code now refuses a PowerShell command that defines a function named after an alias for a dangerous command such as Remove-Item or Set-Content\n\n**What**\n\nIn PowerShell, an alias is a short name for a command. Some aliases point to commands that can delete or overwrite files, such as Remove-Item or Set-Content. Claude Code now refuses to run a PowerShell command that defines a function with the same name as one of those aliases. It replies that the command was not run and tells Claude to rename the function.\n\nThis check is part of the permission check Claude Code runs on PowerShell commands before running them.\n\n**Why**\n\nA function with the same name as an alias can hide what a command will really do. This could let a destructive command get past the permission checks under a harmless-looking name.\n\n- Area: PowerShell\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}