Skip to content

Read Policies before Preferences in each hive - #23

Merged
coreybutler merged 1 commit into
mainfrom
fix/policy-then-pref
Oct 28, 2026
Merged

coreybutler merged 1 commit into
mainfrom
fix/policy-then-pref

Conversation

@coreybutler

Copy link
Copy Markdown
Contributor

Summary

  • CLI ROOTS order is now HKLM Policies, HKLM Preferences, HKCU Policies, HKCU Preferences.
  • Policies beat Preferences in the same hive. Machine still beats user.
  • Matches the shim lookup so nvm config and runtime no longer disagree on GPO vs machine prefs.

Test plan

  • go test in preferences
  • go test in settings (security-policy tests: HKCU policy ignored for security keys; HKLM policy wins; HKCU pref fallback still works)

CLI lookup now matches the shim: HKLM Policies, HKLM Preferences, HKCU Policies, HKCU Preferences. User policy no longer overrides machine preferences.

Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com>
@coreybutler
coreybutler merged commit 5006246 into main Oct 28, 2026
2 checks passed
@coreybutler
coreybutler deleted the fix/policy-then-pref branch October 28, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant