Title: PS7-packaged: bring experimental features into the MachineFolder model (deferred from #27632) · Issue #27702 · PowerShell/PowerShell · GitHub
Open Graph Title: PS7-packaged: bring experimental features into the MachineFolder model (deferred from #27632) · Issue #27702 · PowerShell/PowerShell
X Title: PS7-packaged: bring experimental features into the MachineFolder model (deferred from #27632) · Issue #27702 · PowerShell/PowerShell
Description: Summary PR #27632 introduces the MachineFolder per-machine writable data store for MSIX-packaged PowerShell (design: #27697), relocating system-wide (AllUsers) config and profile out of the immutable $PSHOME and merging three scopes. Exp...
Open Graph Description: Summary PR #27632 introduces the MachineFolder per-machine writable data store for MSIX-packaged PowerShell (design: #27697), relocating system-wide (AllUsers) config and profile out of the immutab...
X Description: Summary PR #27632 introduces the MachineFolder per-machine writable data store for MSIX-packaged PowerShell (design: #27697), relocating system-wide (AllUsers) config and profile out of the immutab...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/27702
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PS7-packaged: bring experimental features into the MachineFolder model (deferred from #27632)","articleBody":"## Summary\r\n\r\nPR #27632 introduces the **MachineFolder** per-machine writable data store for MSIX-packaged PowerShell (design: #27697), relocating system-wide (`AllUsers`) config and profile out of the immutable `$PSHOME` and merging three scopes.\r\n\r\n**Experimental features are intentionally excluded from that work and left exactly as they behave today.** This issue tracks bringing experimental features into the MachineFolder model in a follow-up.\r\n\r\n## Current behavior (after #27632)\r\n\r\nExperimental features do **not** participate in the MachineFolder scope:\r\n\r\n- **Reads** — `PowerShellConfig.GetExperimentalFeatures()` reads `CurrentUser`, falling back to `AllUsers` (`$PSHOME`). Same as non-packaged installs.\r\n- **Writes** — `Enable-/Disable-ExperimentalFeature -Scope AllUsers` is **not** redirected to the MachineFolder (`allowMachineFolderRedirect: false`). Under MSIX the write therefore targets the read-only `$PSHOME` and fails — identical to the pre-existing behavior on a packaged build. `-Scope CurrentUser` is unaffected and works normally.\r\n\r\nThis keeps `$PSHOME` config as read-only product defaults and avoids a half-wired state where writes silently land in the MachineFolder while reads ignore it.\r\n\r\n## Why it was deferred\r\n\r\nThe legacy on-disk shape is a single `\"ExperimentalFeatures\": [ ... ]` **enabled list**, which cannot correctly express *\"the admin disabled an in-box preview feature that ships enabled\"* once the list is split across three merged scopes. Naively relocating the list to the MachineFolder produced a bug where disabling a second feature re-enabled the first, and inverted `AllUsers`/`CurrentUser` precedence in ways we did not want to ship unreviewed. Designing the correct schema (explicit enabled **and** disabled sets, plus a defined merge precedence consistent with the policy/preference rules in #27697) is its own change.\r\n\r\n## Desired future behavior\r\n\r\n- Represent experimental-feature state so that **enabled** and **disabled** deltas are both expressible per scope (not just a flat enabled list).\r\n- Under MSIX, `-Scope AllUsers` writes only the changed feature(s) to the MachineFolder (delta-only, consistent with the rest of #27632), leaving `$PSHOME` defaults intact.\r\n- Define and document the merge precedence for experimental features across `MachineFolder` / `$PSHOME` / `CurrentUser`, and decide whether it follows the *policy* order (machine wins) or the *preference* order (user wins).\r\n- Preserve backward compatibility for existing `powershell.config.json` files that use the flat enabled list.\r\n\r\n## Scope / notes\r\n\r\n- **In scope:** schema for enable/disable deltas, MachineFolder read+write for experimental features, merge precedence + docs, migration/back-compat for the flat list.\r\n- **Out of scope here:** the general MachineFolder mechanism (#27632 / #27697), export-effective-config cmdlet (#27698), Update-Help `AllUsers` under MSIX (#27699), session-config relocation (#9278).\r\n- Docs tracking: MicrosoftDocs/PowerShell-Docs#13172 (experimental-features section marked pending until this ships).\r\n\r\n## References\r\n\r\n- Feature PR: #27632\r\n- Design: #27697\r\n- MSIX gaps tracking: #27565\r\n- Docs: MicrosoftDocs/PowerShell-Docs#13172\r\n","author":{"url":"https://github.com/jshigetomi","@type":"Person","name":"jshigetomi"},"datePublished":"2026-07-20T17:02:57Z","url":"https://github.com/PowerShell/PowerShell/issues/27702"}
| 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:d8e85912-d74e-1c53-792b-4dd3a0471d7c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D7A:2A130F:204A038:2CD19CD:6AFD1811 |
| html-safe-nonce | 1aa3741256a35fe02628ca08db9bc45f35d70c6150f4be6cc4e592a6e81f42bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDdBOjJBMTMwRjoyMDRBMDM4OjJDRDE5Q0Q6NkFGRDE4MTEiLCJ2aXNpdG9yX2lkIjoiOTIwNjMwODAzNDc5ODQ5MTY2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8e8e88be0b6380763ea5ef2ef1041b60efd7d1b65bf9f4a249807898c82f5a40 |
| hovercard-subject-tag | issue:4931198123 |
| 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/27702/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3ba8f4a458e25bb35366508c07b3593b7dc4a0f6b34931973414129c0cbc345/PowerShell/PowerShell/issues/27702 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3ba8f4a458e25bb35366508c07b3593b7dc4a0f6b34931973414129c0cbc345/PowerShell/PowerShell/issues/27702 |
| og:image:alt | Summary PR #27632 introduces the MachineFolder per-machine writable data store for MSIX-packaged PowerShell (design: #27697), relocating system-wide (AllUsers) config and profile out of the immutab... |
| 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