{"version":"2.1.283","anchor":"powershell-protected-path-removal-denial-accepts-a-custom-me","canonical_anchor":"powershell-protected-path-removal-denial-accepts-a-custom-me","heading":"Blocked PowerShell deletions of protected paths can carry a specific reason","tier":"internal","area":"Windows","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283\/e\/powershell-protected-path-removal-denial-accepts-a-custom-me","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.283","markdown":"### Blocked PowerShell deletions of protected paths can carry a specific reason\n\nThe message shown when Remove-Item is blocked on a protected system path can now be replaced with a more specific reason\n\n**Unclear.** It is not clear which cases, if any, now show a custom message instead of the standard one.\n\n**What**\n\nClaude Code blocks the PowerShell command `Remove-Item` when it targets a protected system path. The message it shows for that block can now be supplied with a more specific reason. When no reason is given, the message is the same as before: \"Remove-Item on system path '\u2026' is blocked. This path is protected from removal.\"\n\n**Why**\n\nSome blocked deletions may now explain themselves with different wording than the standard message.\n\n- Area: Windows\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}