Title: PS7-packaged: pwsh not discoverable in SYSTEM / LocalSystem context · Issue #27562 · PowerShell/PowerShell · GitHub
Open Graph Title: PS7-packaged: pwsh not discoverable in SYSTEM / LocalSystem context · Issue #27562 · PowerShell/PowerShell
X Title: PS7-packaged: pwsh not discoverable in SYSTEM / LocalSystem context · Issue #27562 · PowerShell/PowerShell
Description: Summary When PowerShell 7 is installed as an MSIX package, pwsh is not available in non-interactive system contexts. MSIX packages register per-user only — the SYSTEM account and other service identities cannot locate or invoke pwsh. Aff...
Open Graph Description: Summary When PowerShell 7 is installed as an MSIX package, pwsh is not available in non-interactive system contexts. MSIX packages register per-user only — the SYSTEM account and other service iden...
X Description: Summary When PowerShell 7 is installed as an MSIX package, pwsh is not available in non-interactive system contexts. MSIX packages register per-user only — the SYSTEM account and other service iden...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/27562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PS7-packaged: pwsh not discoverable in SYSTEM / LocalSystem context","articleBody":"## Summary\n\nWhen PowerShell 7 is installed as an MSIX package, `pwsh` is not available in non-interactive system contexts. MSIX packages register per-user only — the SYSTEM account and other service identities cannot locate or invoke `pwsh`.\n\n## Affected scenarios\n\n- Scheduled tasks running as SYSTEM\n- Windows Services running as LocalSystem or a service account\n- MDM-deployed scripts (Intune, ConfigMgr)\n- Deployment agents and automation pipelines running in non-interactive contexts\n\n## Repro\n\nFrom an elevated prompt:\n\n```powershell\npsexec -s -i pwsh.exe\n```\n\n**Expected:** PowerShell 7 launches. \n**Actual:** `The system cannot find the file specified.`\n\n## Context\n\nThis is a known architectural constraint of MSIX packaging. We are working with the relevant Windows engineering teams on a resolution. We have internal tracking for this work and will update this issue as progress is made.\n\nThis is a blocker for the PS7 inboxing initiative. ","author":{"url":"https://github.com/theJasonHelmick","@type":"Person","name":"theJasonHelmick"},"datePublished":"2026-06-05T15:22:37Z","url":"https://github.com/PowerShell/PowerShell/issues/27562"}
| 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:421a0124-0b75-deec-214c-4e366d5c43c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9BE:14BE93:1E8DC2F:2A895A2:6AFD14D3 |
| html-safe-nonce | 58006cd2b982d3cb3b1babae9a79ca90901a1183e09e64e0b98ae789145c0637 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUJFOjE0QkU5MzoxRThEQzJGOjJBODk1QTI6NkFGRDE0RDMiLCJ2aXNpdG9yX2lkIjoiNzkwMDc0MDk1Mjk1MDM3OTczMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea0499197d41b90ae919752bb4a13f9393f318f811b25542259b55751088d9a2 |
| hovercard-subject-tag | issue:4598036178 |
| 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/27562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8126fe42dcb402a8818f58c10ecb3d9db47e243983476c8eaa8131726c4f606/PowerShell/PowerShell/issues/27562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8126fe42dcb402a8818f58c10ecb3d9db47e243983476c8eaa8131726c4f606/PowerShell/PowerShell/issues/27562 |
| og:image:alt | Summary When PowerShell 7 is installed as an MSIX package, pwsh is not available in non-interactive system contexts. MSIX packages register per-user only — the SYSTEM account and other service iden... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theJasonHelmick |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| 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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width