René's URL Explorer Experiment


Title: Place System-Wide Config in the Machine Folder for MSIX Packages by jshigetomi · Pull Request #27632 · PowerShell/PowerShell · GitHub

Open Graph Title: Place System-Wide Config in the Machine Folder for MSIX Packages by jshigetomi · Pull Request #27632 · PowerShell/PowerShell

X Title: Place System-Wide Config in the Machine Folder for MSIX Packages by jshigetomi · Pull Request #27632 · PowerShell/PowerShell

Description: PR Summary This pull request adds support for a new writable per-machine configuration scope (MachineFolder) for packaged (MSIX) PowerShell installs that opt into the Windows per-machine ApplicationData store. It updates how configuration settings are read and written, introduces new merge logic for policy and preference settings, and ensures backward compatibility for non-packaged installs. The changes also include the necessary manifest and utility updates to detect and use the new data store. Support for per-machine ApplicationData (MSIX) configuration: Added the MachineFolder configuration scope to ConfigScope and updated the manifest (AppxManifest.xml) to declare and provision the per-machine ApplicationData store for packaged installs. ([1], [2], [3]) Implemented logic to detect when running as a packaged app with a provisioned per-machine data store, and to resolve the path to this store using registry and Win32 APIs. ([1], [2]) Configuration file handling and scope precedence: Updated the configuration file path resolution and read/write logic to support the new MachineFolder scope, including redirecting system-wide writes to the writable per-machine location when available. ([1], [2], [3], [4], [5]) Changed the merge order for configuration scopes so that user, machine, and product (AllUsers) settings are combined according to whether a setting is a "preference" (user wins) or "policy" (union across scopes). Added helper methods MergePreferenceValue and MergePolicyList to encapsulate this logic. ([1], [2], [3]) Behavior and compatibility updates: Ensured that experimental features remain on legacy scopes and are not redirected to the new per-machine data store for now, maintaining compatibility with non-packaged installs. (PSConfiguration.csR262-R298) Updated the manifest's target device family maximum version to the latest tested version. (AppxManifest.xmlR21-R27) PR Context This PR provides the initial infrastructure needed to fix broken features on MSIX packages. This is planned as one of many PRs that will target various issues with MSIX packages. Fixes #9278. Please see #27565 for all the issues we are tracking for MSIX packages. PR Checklist PR has a meaningful title Use the present tense and imperative mood when describing your changes Summarized changes Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header This PR is ready to merge. If this PR is a work in progress, please open this as a Draft Pull Request and mark it as Ready to Review when it is ready to merge. Breaking changes None OR Experimental feature(s) needed Experimental feature name(s): User-facing changes Not Applicable OR Documentation needed Issue filed: MicrosoftDocs/PowerShell-Docs#13172 Testing - New and feature N/A or can only be tested interactively OR Make sure you've added a new test if existing tests do not effectively test the code changed

Open Graph Description: PR Summary This pull request adds support for a new writable per-machine configuration scope (MachineFolder) for packaged (MSIX) PowerShell installs that opt into the Windows per-machine Applicati...

X Description: PR Summary This pull request adds support for a new writable per-machine configuration scope (MachineFolder) for packaged (MSIX) PowerShell installs that opt into the Windows per-machine Applicati...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/27632

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dde246c1-2b5d-3310-042d-a6a7c978f597
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB704:38F810:B2F26C:F73011:6AFD3F85
html-safe-nonce1f938fb728e45dd2a6418662d985c72bafc97737901b0ab0d57c1fb8d16811b1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzA0OjM4RjgxMDpCMkYyNkM6RjczMDExOjZBRkQzRjg1IiwidmlzaXRvcl9pZCI6IjEzOTA1NDQ2OTUyMjE2MzI5MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac82e271a5afc4b94e5c61d8eb2ca1dd23050e065e89604dd9400e91248c655c55
hovercard-subject-tagpull_request:3930900885
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/27632/files
twitter:imagehttps://avatars.githubusercontent.com/u/124807742?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/124807742?s=400&v=4
og:image:altPR Summary This pull request adds support for a new writable per-machine configuration scope (MachineFolder) for packaged (MSIX) PowerShell installs that opt into the Windows per-machine Applicati...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonebdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release556dd37bb0aceffb25724e151b5d858b3265b40b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/27632/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F27632%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F27632%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/27632/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/27632/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/27632/files
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests364 (364)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
Justin Chung (jshigetomi)https://github.com/jshigetomi
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
jshigetomi:perMachineDataStorehttps://github.com/jshigetomi/PowerShell/tree/perMachineDataStore
Conversation 16 https://github.com/PowerShell/PowerShell/pull/27632
Commits 19 https://github.com/PowerShell/PowerShell/pull/27632/commits
Checks 35 https://github.com/PowerShell/PowerShell/pull/27632/checks
Files changed 5 https://github.com/PowerShell/PowerShell/pull/27632/files
Place System-Wide Config in the Machine Folder for MSIX Packages https://github.com/PowerShell/PowerShell/pull/27632/files#top
Show all changes 19 commits https://github.com/PowerShell/PowerShell/pull/27632/files
bfe8963 Add per-machine data store (appdata:MachineFolder) to MSIX manifest Jun 24, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/bfe89639a4f6f996e3ad61cf1b4b1cf7260af04f
63d9e69 Relocate AllUsers paths to per-machine data store when packaged Jun 24, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/63d9e69d5580485cf19bcb5514ba6ff4cb86a250
1dcbef3 Guard per-machine data store fields with #if !UNIX to fix CS0169 buil… Jun 29, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/1dcbef379f32b98015e25cb643bc30831a9741d7
079e746 Remove redundant per-machine store Modules path from PSModulePath Jul 9, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/079e7463d9b99e1b8d94a853e7ac539851631daf
6a1e674 Defer AllUsers updatable-help redirection to a separate PR Jul 9, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/6a1e674c570f1fb7155962dbdecf9bf733fc0788
f054049 Rework MSIX system-wide config into a distinct machine-folder scope Jul 13, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/f0540498a702d80c58e85f7c5cd3ab2bf47dbe29
1939cfb Grant Built-in Users read on the MSIX machine-folder data store Jul 13, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/1939cfbbd9feca57079fe29262e2cafeca21fb0c
2fd862f Fix experimental-feature overrides with explicit enable/disable sets Jul 13, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/2fd862feb38e2145c645acd984ee11c00c382321
a6108cc Defer experimental features from MachineFolder; restore legacy scope … Jul 20, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/a6108ccf5917e703979946f59b1a3e2c8e0c7a4e
76b45ed Scope PR to config merging: drop profile relocation; union WinCompat … Jul 20, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/76b45ed53105d8075fb0e61a6a71ff11aa8aebec
d038853 Keep legacy execution-policy scope order; document policy vs preference Jul 20, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/d038853cf5beb419f4d4dced85b5758b69ba13c8
cdfe9b7 Clarify that config-based execution policy is a preference, not a policy Jul 20, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/cdfe9b742e8872564cb44aea9e9c0f1074ab6f36
844ee34 Extract config merge helpers: MergePolicyList and MergePreferenceValue Jul 20, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/844ee343ae7e12d3bb3ee75fedc7d67b6b700b59
a0088ce Move config merge rationale into the merge helpers Jul 20, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/a0088ce5e6efdd0b3114ab84338a99727898df43
401609d Add xUnit tests for MachineFolder WinCompat config merge Jul 20, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/401609d9df22f42fcb75d4d4b49bbd8272bd5c15
f1f6c6c Fix CodeFactor style issues in MachineFolder WinCompat tests pwshBot Jul 21, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/f1f6c6c07fcbc6e459c1a6782eefabe3bf3be4b2
bfd0cf9 Reorder test helpers so internal member precedes private members pwshBot Jul 21, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/bfd0cf913277578b5645e2b9c8ce30b7026164be
eb40468 Read PackageRepositoryRoot from 64-bit registry view Jul 22, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/eb4046899ba3b0b946efa04be0aec26bcaeb8997
c1c2770 Rename TryGetCurrentPackageFamilyName to GetCurrentPackageFamilyName Jul 24, 2026 https://github.com/PowerShell/PowerShell/pull/27632/commits/c1c277068d7091c5251c82146a89499452dd2285
Clear filters https://github.com/PowerShell/PowerShell/pull/27632/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/27632/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/27632/files
AppxManifest.xml https://github.com/PowerShell/PowerShell/pull/27632/files#diff-2cefbec28ad9941db6cfad6e9d2029f1e28f340c68f5c72ee52616fa4bef4ce6
PSConfiguration.cs https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
Utils.cs https://github.com/PowerShell/PowerShell/pull/27632/files#diff-08b9d853f19b7b63dfb6b0fa7b634db55f2a20aeed01ffb5855b3e5b0da3431b
SecuritySupport.cs https://github.com/PowerShell/PowerShell/pull/27632/files#diff-5fb0dc8cc7630fb96b61695451c901e388500f9f66420e955b1a0e68394f9237
test_PSConfiguration.cs https://github.com/PowerShell/PowerShell/pull/27632/files#diff-ca2c77fa7aac290a5a936c622a9685b691c192fa834ef159133b2cd2f0ba8911
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
assets/AppxManifest.xmlhttps://github.com/PowerShell/PowerShell/pull/27632/files#diff-2cefbec28ad9941db6cfad6e9d2029f1e28f340c68f5c72ee52616fa4bef4ce6
View file https://github.com/jshigetomi/PowerShell/blob/c1c277068d7091c5251c82146a89499452dd2285/assets/AppxManifest.xml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/27632/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-2cefbec28ad9941db6cfad6e9d2029f1e28f340c68f5c72ee52616fa4bef4ce6
Justin Chung (jshigetomi)https://github.com/jshigetomi
Jul 13, 2026https://github.com/PowerShell/PowerShell/pull/27632/files#r3573593307
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/27632/files
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-2cefbec28ad9941db6cfad6e9d2029f1e28f340c68f5c72ee52616fa4bef4ce6
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
src/System.Management.Automation/engine/PSConfiguration.cshttps://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
View file https://github.com/jshigetomi/PowerShell/blob/c1c277068d7091c5251c82146a89499452dd2285/src/System.Management.Automation/engine/PSConfiguration.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/27632/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
Justin Chung (jshigetomi)https://github.com/jshigetomi
Jul 20, 2026https://github.com/PowerShell/PowerShell/pull/27632/files#r3616815868
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/27632/files
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/27632/files
https://github.com/PowerShell/PowerShell/pull/27632/files#diff-4c9cd38a9c06a4232b2b7f7bb27cf29fd44e4e7cdfa2f5e9a6f2aafc530d9c1c
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/27632/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/27632/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.