claude-code - 💡(How to fix) Fix [BUG] Enterprise managed settings (HKLM) are not applying [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52546Fetched 2026-04-24 06:04:17
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×3commented ×2subscribed ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Environment: Claude Code Version: 2.1.118 Windows 11 24H2

Claude code won't pickup settings from HKLM\SOFTWARE\Policies\ClaudeCode\Settings

Verified JSON was valid with (Get-ItemProperty 'HKLM:\SOFTWARE\Policies\ClaudeCode' -Name Settings).Settings | ConvertFrom-Json

Same JSON will apply settings when placed in C:\Program Files\ClaudeCode\managed-settings.json

/status shows only user settings being applied. /doctor doesn't display any errors.

What Should Happen?

According to https://code.claude.com/docs/en/settings Claude Code should pick up JSON in REG_SZ value registry key and apply settings into the managed settings scope.

Error Messages/Logs

Steps to Reproduce

  1. Create HKLM\SOFTWARE\Policies\ClaudeCode\Settings registry key of type REG_SZ or REG_EXPAND_SZ.
  2. Add JSON containing managed settings to registry key.
  3. Managed settings will not apply.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.118

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by verifying the registry key path and data type, and ensuring the JSON settings are correctly formatted.

Guidance

  • Check the registry key path HKLM\SOFTWARE\Policies\ClaudeCode\Settings to ensure it matches the expected path and the JSON data is correctly stored as a REG_SZ value.
  • Verify that the JSON settings are valid and correctly formatted, using tools like ConvertFrom-Json as mentioned in the issue.
  • Ensure that the Claude Code version 2.1.118 is correctly configured to read settings from the registry key.
  • Test applying the same JSON settings through the C:\Program Files\ClaudeCode\managed-settings.json file to isolate the issue.

Example

No code snippet is provided as the issue does not require a specific code change, but rather a verification of the registry key and JSON settings.

Notes

The issue may be related to the registry key path or data type, or the JSON settings format. Further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Verify the registry key path and JSON settings format to ensure they match the expected configuration, as the issue may not be directly related to the Claude Code version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING