{"name":"COMSPEC","slug":"comspec","family":"env","title":"Environment variables","noun":"environment variable","description":"Inline admin policy scripts run with a stripped environment and a PowerShell resolved from fixed paths only.","description_source":"entry","described_by":{"version":"2.1.234","anchor":"inline-policy-helpers-run-with-a-scrubbed-environment-and-a-"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.281","anchor":"more-windows-environment-variables-are-now-in-the-settings-e","heading":"More Windows environment variables are now in the settings env-var set","line":"More Windows environment variables, such as `SYSTEMROOT`, `COMSPEC` and `PSMODULEPATH`, now get special handling when set in settings `env`","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.235","anchor":"policy-helper-subprocess-environment-scrubbing-moved-and-har","heading":"Policy-helper subprocess environment scrubbing moved and hardened","line":"Policy-helper environment scrubbing moved into its own module and now strips more variables","released_at":"2026-08-18 18:24:10","reason":"found in this entry's text"},{"version":"2.1.234","anchor":"inline-policy-helpers-run-with-a-scrubbed-environment-and-a-","heading":"Inline policy helpers run with a scrubbed environment and a fixed PowerShell path","line":"Inline admin policy scripts run with a stripped environment and a PowerShell resolved from fixed paths only.","released_at":"2026-08-17 18:19:13","reason":"found in this entry's text"}],"entries_total":3,"docs":[{"source":"claude-code","path":"settings-reference","title":"All settings","documented":false}],"docs_total":1,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/comspec","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}