Title: PS7-packaged: provide a cmdlet to export the fully merged / effective configuration · Issue #27698 · PowerShell/PowerShell · GitHub
Open Graph Title: PS7-packaged: provide a cmdlet to export the fully merged / effective configuration · Issue #27698 · PowerShell/PowerShell
X Title: PS7-packaged: provide a cmdlet to export the fully merged / effective configuration · Issue #27698 · PowerShell/PowerShell
Description: Tracked by #27565 · Design: #27697 Summary With the per-machine data store ("MachineFolder", #27697), the effective PowerShell configuration is now merged across three scopes — MachineFolder, $PSHOME (product defaults), and CurrentUser —...
Open Graph Description: Tracked by #27565 · Design: #27697 Summary With the per-machine data store ("MachineFolder", #27697), the effective PowerShell configuration is now merged across three scopes — MachineFolder, $PSHO...
X Description: Tracked by #27565 · Design: #27697 Summary With the per-machine data store ("MachineFolder", #27697), the effective PowerShell configuration is now merged across three scopes — MachineFol...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/27698
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PS7-packaged: provide a cmdlet to export the fully merged / effective configuration","articleBody":"_Tracked by #27565 · Design: #27697_\r\n\r\n## Summary\r\n\r\nWith the per-machine data store (\"MachineFolder\", #27697), the effective PowerShell configuration is now merged across **three** scopes — `MachineFolder`, `$PSHOME` (product defaults), and `CurrentUser` — and the precedence differs between **policy** settings (system wins) and **preference** settings (user wins). There is currently no supported way to see the *resolved* result. `PowerShellConfig` is `internal`, and reading the raw `powershell.config.json` files by hand no longer reflects what the engine actually applies.\r\n\r\nThis is a diagnostic gap for administrators: after setting machine-wide policy, they cannot easily confirm the effective execution policy, WinCompat deny list, experimental-feature state, logging config, etc., or which scope won.\r\n\r\n## Proposal\r\n\r\nProvide a read-only cmdlet that emits the fully merged, effective configuration (as JSON), for example:\r\n\r\n```powershell\r\nGet-PSConfiguration [-Scope \u003cMachineFolder|AllUsers|CurrentUser>] [-Effective]\r\n```\r\n\r\n- `-Effective` (default): the merged result the engine actually uses, honoring policy-vs-preference precedence.\r\n- `-Scope`: dump a single scope's raw contents.\r\n- Ideally annotate each setting with the scope that \"won\", to make troubleshooting precedence straightforward.\r\n\r\nThe cmdlet name/shape is open for design (`Get-PSConfiguration`, `Export-PSConfiguration`, `Get-PSConfiguration -AsJson`, …) and needs Working Group sign-off — **no public configuration cmdlet exists today**.\r\n\r\n## Acceptance criteria\r\n\r\n- Emits JSON that matches the engine's actual merge (policy → system-wins, preference → user-wins).\r\n- Works both packaged and unpackaged (unpackaged simply has no `MachineFolder` scope, so results collapse to the legacy two-scope merge).\r\n- Strictly read-only; never writes a config file.\r\n- Preferably reports the winning source scope per setting.\r\n\r\n## Related\r\n\r\n- Design / mechanism: #27697\r\n- Config relocation implementation: #27632\r\n- Umbrella: #27565\r\n","author":{"url":"https://github.com/jshigetomi","@type":"Person","name":"jshigetomi"},"datePublished":"2026-07-17T20:00:51Z","url":"https://github.com/PowerShell/PowerShell/issues/27698"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:325cf9da-7f17-f652-4ec2-4729395402db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D538:2CE118:1E31A01:2A371A8:6AFD17BA |
| html-safe-nonce | 96ba14c399a5ae487798ff09e71af8d2a71ad6f4aef96ef9105e0309824d4968 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTM4OjJDRTExODoxRTMxQTAxOjJBMzcxQTg6NkFGRDE3QkEiLCJ2aXNpdG9yX2lkIjoiODcwNDM0NjAwNzA5NTAyMzU0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1a23467c9cf01c767afa70bc58d26db48c7056ef4f52e770d88755562769bc8a |
| hovercard-subject-tag | issue:4914416279 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/27698/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e9ec12f5e0de5d9100e0dd0f8d5bda935881d9ad4fa8dc2c159fd546a2d8711f/PowerShell/PowerShell/issues/27698 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e9ec12f5e0de5d9100e0dd0f8d5bda935881d9ad4fa8dc2c159fd546a2d8711f/PowerShell/PowerShell/issues/27698 |
| og:image:alt | Tracked by #27565 · Design: #27697 Summary With the per-machine data store ("MachineFolder", #27697), the effective PowerShell configuration is now merged across three scopes — MachineFolder, $PSHO... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jshigetomi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width