Skip to content

Tracking: MSIX packaging gaps for PowerShell 7 #27565

Open

Description

PowerShell 7 is moving to MSIX packaging as part of the inboxing initiative. This issue tracks all known gaps between MSIX-packaged PS7 and the full capability set customers depend on today.

Each sub-issue below is a discrete gap with its own engineering scope. This issue will remain open until all blockers are resolved.


🔴 Blocker — System Context: pwsh invisible to automation

MSIX packages register per-user only. The SYSTEM account, LocalSystem, and service identities cannot locate or invoke pwsh, breaking any automation that doesn't run as an interactive user.


🔴 Blocker — DISM API: Windows Capability commands fail from PS7

Add-WindowsCapability, Get-WindowsOptionalFeature, and related DISM cmdlets fail with "Class not registered" when called from MSIX-packaged PS7. This breaks on-device setup and configuration scripts for OpenSSH, WSL, App SDK, and similar.


🟡 Enterprise Configuration: PS7 cannot write its own config

$PSHome is read-only under MSIX. Session configuration, machine-wide profiles, updatable help, and any tooling that writes to PS7's home directory fails with access denied or silently does nothing.

Solution substrate: an admin-writable, all-users-readable per-machine data store ("MachineFolder"). Design and rollout:


🟡 Server Core

MSIX packages cannot register/activate on Windows Server Core. See #27610 for root cause and fix direction.


🟢 Other confirmed gaps (tracked, not on critical path)


Status

Gap Status
SYSTEM / LocalSystem context In progress
WinRM / Remoting In progress
DISM (Add-WindowsCapability) In progress
MachineFolder data store (#27697) In progress (config in PR #27632)
SessionConfig .pssc location (#9278) Under investigation
AllUsersAllHosts write access (#27564) Under investigation
Updatable help AllUsers (#27699) Not started
Export effective config cmdlet (#27698) Not started
.ps1 file association (#27277) Not on critical path
Silent write error (#25733) Not on critical path
Server Core MSIX activation (#27610) In progress

We are committed to resolving the blocker gaps before PS7 ships as the inbox shell. Updates will be posted to each individual issue as progress is made.

Activity

  1. JAK1047 commented on Jun 5, 2026

    @JAK1047

    To have lack of Server Core support and incompatibility with Group Managed Service Accounts added do issues need opened?

  2. MisterSausage commented on Jun 16, 2026

    @MisterSausage

    If I may add here: It's important that existing pwsh processes are not killed when the MSIX package is updated (that is, when there is a version upgrade), especially since administrators will have less control over when updates are applied.

  3. kilasuit commented on Jun 20, 2026

    @kilasuit
    Collaborator

    Jason Helmick (@theJasonHelmick) realistically this should all be tracked in a project as well

  4. BlackV commented on Jul 7, 2026

    @BlackV

    Can we add another gap here

    The newly added Microsoft Enterprise App catalog for Intune, the managed application for Powershell Core is still using the MSI (this is separate from the store deployment version in intune and manually registered win32 installs)

    So Microsoft will need to update/approve changes to that method too at some point

    Install command
    "%SystemRoot%\System32\msiexec.exe" /i "PowerShell-7.5.4-win-x64.msi" /qn
    
    Uninstall command
    "%SystemRoot%\System32\msiexec.exe" /X {E8159677-ACF8-4D64-9D36-5C36B8BBEA39} /qn
    

    Thanks

  5. Karl-WE commented on Jul 17, 2026

    @Karl-WE

    Adding some remarks from #27213 for housekeeping and consolidation. Thanks for creating this thread and adding this to the OP

    Here are some side-effects this change brings:

    Affected OS: All supported versions of Windows Server, Windows and Azure Stack HCI OS (Azure Local).

    Winget:
    No update path from msi to msix using winget. Winget has no logic that it would remove the msi to replace it with MSIX when upgrading the package. Removing a package is not covered by the dependency logic winget already has, it can just add packages beforehand.
    Please consider to consult with winget PM about this change. This change will break deployment logic and causing regressions, status quo.

    adding to "Blocker — DISM API: Windows Capability commands fail from PS7":
    It is not necessarily the API but how the DISM PowerShell works and how MSIX is limited in terms of permissions.

    It's identified that some modules, such as Windows and Windows Server inbox DISM module causing a regression with the MSIX. method.
    Execution will fail because of access / permission issues. To my knowledge this is by-design of MSIX.
    It is not only the Get-WindowsOptionalFeature that is affected. There are more commands from DISM module affected, such as:
    Repair-WindowsImage.

    While, as Windows Server MVP I could file a feature request for updating dism module, also adding missing commands/parameters, unlikely such update will happen in time and alignment of this change. Also backports need extended time.

  6. khaledJ-hash commented on Aug 3, 2026

    @khaledJ-hash

    This is the very reason that I don't like .msix installers.
    I had to compile a few various packages (including PowerShell itself) from source just to get around this problem.
    I hope this gets sorted soon.

  7. DrusTheAxe commented on Aug 10, 2026

    @DrusTheAxe

    If I may add here: It's important that existing pwsh processes are not killed when the MSIX package is updated (that is, when there is a version upgrade), especially since administrators will have less control over when updates are applied.

    Packages can declare <uap17:UpdateWhileInUse>defer</> to defer updates while they're running. Terminal and others user this.

    And same can be specified for a specific deployment operation (regardless what's in the manifest).

    If the package is in use and this is defer/true, the deployment operation succeeds but the work is deferred until the next opportunity (e.g. after the running process(es) quit).

    https://learn.microsoft.com/uwp/schemas/appxpackage/uapmanifestschema/element-uap17-updatewhileinuse

    https://learn.microsoft.com/uwp/api/windows.management.deployment.addpackageoptions.deferregistrationwhenpackagesareinuse

  8. nixtar commented on Aug 14, 2026

    @nixtar

    One possible gap or at least change to note is how updates are handled.

    We utilise WSUS to control updates for PowerShell 7, when installing via the MSI there is an option to update via Windows Update / WSUS.

    How does this work with an MSIX?
    AFAIK they will update using the Windows Store infrastructure and if so then we will lose our current controls? (Without disabling updates for all store apps)

  9. marshallwp commented on Aug 17, 2026

    @marshallwp

    Nick Ireland (@nixtar) Microsoft Store only handles updates of MSIX PowerShell if you install it via the Microsoft Store. If you manually download and install the published *.msixbundle release packages, updates are your responsibility.

    AFAIK, there is no automated update process for MSIX installed this way; you'll need to monitor and install updates yourself.

  10. Karl-WE commented on Aug 17, 2026

    @Karl-WE

    Please try running the winget upgrade command.

    I noticed today that Winget will not list PowerShell via the source 'msstore' seperately anymore.
    The source 'winget' will install the MSIX.

    How did I find out about this?
    When I tried to upgrade the MSI-installed version, it no longer got stuck, but correctly reported that another installer version had been used, and advised me to remove and reinstall.

  11. God-damnit-all commented on Aug 18, 2026

    @God-damnit-all
    Contributor

    As of today noticed that winget will not enlist PowerShell via source msstore but the regular winget source will install the msix.

    Could you please rephrase that?

  12. jborean93 commented on Aug 19, 2026

    @jborean93
    Collaborator

    Not a blocker in any way but one issue I've recently encountered with MSIX packaged PowerShell is no longer being able to debug binary modules for PowerShell in VSCode. This probably affects other IDEs like Visual Studio or Rider but I have not tested them.

    Ultimately what is happening is the C# attach/run debugger tries to load mscordbi.dll, mscordaccore.dll, and maybe other .NET runtime dlls, that is shipped with PowerShell. These dlls are present but under C:\Program Files\WIndowsApps\$PowerShellPackageName\ which only grants executable rights to processes with the MSIX package identifier attribute. As the C# debug server process does not have this attribute it fails to load those dlls.

    The only two workarounds I know are:

    • Don't use the MSIX PowerShell as the process hosting the binary module being debugged
    • Use Invoke-CommandInDesktopPackage to launch VSCode under the PowerShell package identity

    To use that cmdlet to launch VSCode you need to do the following:

    if (Get-Process -Name Code -ErrorAction Ignore) {
        throw "Existing VSCode processes are running, please close them all before trying again"
    }
    
    $pkg = Get-AppxPackage Microsoft.PowerShell
    
    $invokeParams = @{
        # Corresponds to the Application Id for pwsh.exe in the MSIX manifest
        # https://github.com/PowerShell/PowerShell/blob/9337fa14110c76f05c3222ac141ad72a27abf37a/assets/AppxManifest.xml#L44
        AppId = 'App'
        PackageFamilyName = $pkg.PackageFamilyName
        Command = 'code'
        PreventBreakaway = $true
    }
    Invoke-CommandInDesktopPackage @invokeParams

    Invoke-CommandInDesktopPackage will only work if there are no existing VSCode processes running so you need to ensure that any VSCode instance is closed before running this.

    Once VSCode is running it now has the required access token to load those dlls which the C# debug server will inherit.

    If I find any other workarounds I'll edit this comment.

  13. DrusTheAxe commented on Aug 19, 2026

    @DrusTheAxe

    Nick Ireland (@nixtar) Microsoft Store only handles updates of MSIX PowerShell if you install it via the Microsoft Store

    Slightly incorrect. Store only scans your PC for Store-signed MSIX packages. Doesn't matter how the package gets delivered to the PC -- Store, winget, Intune, sneakernet, ... -- that that what's on the PC is Store signed.

    It's not unusual for developers to submit their package to the Store, then once approved they download the signed .msix package(s) and post on a webserver or other distribution channel in addition to (or instead of) Store distribution. APPDATA.EXE 3.2.0 is one such example :-)

  14. pronichkin commented on Aug 19, 2026

    @pronichkin

    Slightly incorrect. Store only scans your PC for Store-signed MSIX packages. Doesn't matter how the package gets delivered to the PC -- Store, winget, Intune, sneakernet, ... -- that that what's on the PC is Store signed.

    I would add that we're working on more documentation about update mechanism(s) and the controls available to admins. Please hold tight for this.

  15. 57 remaining items

  16. Tragen commented on Nov 19, 2026

    @Tragen

    Hate is a very strong feeling towards a piece of code doing its job. Last time I felt this was Lotus Notes or Windows ME :)

    Hahaha. Yeah, but its clearly not doing its job.

  17. OranguTech commented on Nov 19, 2026

    @OranguTech

    At the risk of further noise, I'll point out that some of the pain would have been avoided if there had been better recognition/use of the LTS status of 7.6.x series. (Separate Winget package, possibly even releases/.msi packages, more explicit and clear callouts in documentation...)

  18. Karl-WE commented on Nov 19, 2026

    @Karl-WE

    A small question. How does the PowerShell MSI tell Windiws to enable Explorer to run ,ps1 files withh PowerShell? What setting(s);are needed and where?

    There are several ways to find out.

    1. MSI authoring tools
      Open msi with the successor and free tool of former old school "Orca".

    Cannot recall the name at the moment but there's one I have always used for packaging, creating mst files, quickly. It can be used without and with payment.

    In this program you will see a registry section. As such I really adore the thoughtful, modular, design of msi. Actually never bothered if msix has something similar. Some few MVPs might have done some tools around it, next to paid tools.

    1. Using regedit
      If you don't want to bother check the hkcu user profiles for so called filetype or more correctly shell associations, which refers to Explorer shell.
      File type
      .ps1

    Mind Windows stores shell extensions in the default user profile, fetched upon first login of new user, not having any local or valid roaming profile at this machine and per user profile settings, which is a small benefit for MSIX.


    I second the request from Sam Erde (@SamErde) and at the same time related to your questions would like to add two more nom-blocking improvements that me or someone need to search for or writing a FR pull request.

    • add PowerShell 7 commands to new context menu, run with PowerShell 7, run with PowerShell 7 (Admin).

    For me it's often pretty useless that same as Sam Erde (@SamErde) mentioned run as / run with commands not following the policy and run without Admin often is limited and the only solution is opening a cmd or ps5 then switching to Pwsh.

    Even more required. In File Explorer when you typed cmd [enter] the path navigation line it opened a cmd at this very location. Same should work with PowerShell 7. I am really asking for 7 if present or 5.1 if not present. It's really annoying that this legacy but handy feature equivalent of open shell here didn't make it for modern shells :)

    I even think I have done that registry hack for new context menu, need to check and will post in a PR.

    Hence, this "run with" context menu usually works better with a fixed path, but I believe I figured it out for MSIX, too.

  19. ahinterl commented on Nov 20, 2026

    @ahinterl

    For me, MSIX is a showstopper for PS as long as this installation method:

    • is unable to install PS system-wide and for all users uniformly
    • prevents the usage of PS session configurations for PS remoting
    • automatic and/or simple upgrades are not clarified

    I wonder why MS puts efforts into this whole MSIX thing with the complete replacement of Windows PowerShell already in the queue. Guess it would be better to start trying to do that instead of messing with a technology that doesn't look to fit the requirements. A Windows PowerShell replacement would need to be available system-wide, so where's the point using MSIX anyway?

  20. User1785604260 commented on Nov 20, 2026

    @User1785604260

    As someone affected by the linked issues and following along here, can the word "BLOCKER" be clarified? I don't understand what it means in the context of this issue as these don't appear to be blocking anything. Does it literally just mean "things blocking us from closing this issue"?

    (Edit: maybe "HOUSEKEEPING BLOCKER" instead if it is just about clicking the close button on this issue.)

  21. Tragen commented on Nov 20, 2026

    @Tragen

    As someone affected by the linked issues and following along here, can the word "BLOCKER" be clarified? I don't understand what it means in the context of this issue as these don't appear to be blocking anything. Does it literally just mean "things blocking us from closing this issue"?

    It means it blocks the users using it in real world scenarios but it doesn't block Microsoft from releasing it. 😉

  22. bryandam commented on Nov 20, 2026

    @bryandam
    • major reason: updating PowerShell in multi-session OS environments, even though open sessions are in use (logged on users, running tasks, allowing a user, developer, admin updating their PS before using, without affecting other users. > jump-hosts and AVD are such scenarios.
      Hint hint: This might cause security issues, as reports might indicated a patched CVE while outdated instances running.

    So there's a corollary there as well: until every user has logged into the box and windows removes the old version, your antivirus is going to trigger on the devices, despite being 'fully patched'. This is a known issue: https://learn.microsoft.com/en-us/troubleshoot/windows-client/application-management/modern-apps-application-packages-reported-vulnerable

    Provides resolutions for the issue in which modern apps or application packages are reported by vulnerability scanning due to multiple versions.
  23. miketheitguy commented on Nov 20, 2026

    @miketheitguy
    • major reason: updating PowerShell in multi-session OS environments, even though open sessions are in use (logged on users, running tasks, allowing a user, developer, admin updating their PS before using, without affecting other users. > jump-hosts and AVD are such scenarios.
      Hint hint: This might cause security issues, as reports might indicated a patched CVE while outdated instances running.

    So there's a corollary there as well: until ever user has logged into the box and windows remove the old version, your antivirus is going to trigger on the devices, despite being 'fully patched'. This is a known issue: https://learn.microsoft.com/en-us/troubleshoot/windows-client/application-management/modern-apps-application-packages-reported-vulnerable

    Provides resolutions for the issue in which modern apps or application packages are reported by vulnerability scanning due to multiple versions.

    Yet another reason this entire plan is bonkers. On Linux, updating everything is as easy as "sudo apt update" and it's done. No biggie.

    The entire paradigm is silly as hell and basically every IT org is going to have to write custom deployments from the zip file.

    ggwp

    Provides resolutions for the issue in which modern apps or application packages are reported by vulnerability scanning due to multiple versions.
  24. Karl-WE commented on Nov 20, 2026

    @Karl-WE

    Can the MSIX Installation of PS 7 get updates through WSUS?
    When clients don't have MSFT Store access?

    Wild guess. i have never seen anyone using WSUS deploying MSIX in the wild not even with additional injection.

    Please keep in mind anything will change due to WSUS deprecation notice.
    Edit: Faster than I suspected WSUS changed from deprecated to removed in Windows Server 2028. Means WSUS end of life, realistically with end of mainstream support for Windows Server 2025. Why: deprecated features are even more unlikely to be supported during extended support or even ESU time frame. Limited to critical bugs and CVEs with any obligations.

    Could be asking the WSUS guru Adam Marshall for a second opinion.

    Thanks for your additions about the multi-user OS situation. Anyone has time to file and link a PR to this one, so we keep it on track?

    Blocking issue: yes it's released, no question about that. In other than dev usual language for change /release management we should be clear blocking issue is related to one or related PRs to, making clear it won't be closed due to inactivity or cleanup by AI or anyone, by accident.

    Note: not writing on behalf of PS PG or MSFT at any time. Consider everything posted my personal opinion and interpretation. Same as with my "justification" why they might have decided to allow the change.

    Words of appreciation to the community and PS team :
    As I do like the fact PS coming to Windows 11 and Windows Server as a new default shell inbox, given msix is MSFT internally agreed requirement, I would like to say thanks to everyone keeping this thread alive, solution-oriented and friendly - despite understandable frustration and some duplicate reports.

  25. ThiloL commented on Nov 21, 2026

    @ThiloL

    In what kind of security-vulnerable environment do application servers have an Internet connection to download updates for PowerShell 7 from the Store?

  26. miketheitguy commented on Nov 21, 2026

    @miketheitguy

    In what kind of security-vulnerable environment do application servers have an Internet connection to download updates for PowerShell 7 from the Store?

    Also an important question. Because yet again, on a Linux environment you can proxy the repositories through artifactory. This is not doable with the Windows Store, making it a significant source of supply chain attacks.

    I'd recommend the person pushing this run that statement by the MS red team if they don't want to listen to someone like myself.

  27. jaspain commented on Nov 24, 2026

    @jaspain

    Adding my voice to this. The internal decision-making process that led to this seems distorted and extremely customer unfriendly. How does it possibly make sense to drop support for MSI installation and updating of a critical system component without having a fully functional alternative ready to go? Has pride overcome rationality?

  28. tristanbarcelon commented on Nov 25, 2026

    @tristanbarcelon

    There are use-cases for powershell scripts that need to execute under System, such as for cloud VMs with local instance disks that need to be detected and conditionally re-formatted if VM was shut down. This powershell script is scheduled to run at Startup via Task Scheduler under System context. What would be the replacement for this or do we just continue to use Windows Powershell?

  29. Karl-WE commented on Nov 26, 2026

    @Karl-WE

    Kindly asking adding section Server Core
    Related #28517

  30. skycommand commented on Nov 27, 2026

    @skycommand

    Hmm... Up to now, we were forced to keep two different versions of PowerShell installed (5.1 and 7.6.x). Now, we have to keep three (5.1, 7.6.10, and 7.7).

    XKCD 927 comes to mind.

    standards_result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package-MSIX

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions