ENGINEERING

winget can install the PowerShell 7.7 MSIX as SYSTEM, and then SYSTEM cannot find pwsh

Marc Borer Updated 14 min
WHERE ATTESTREE FITS
winget patch management
Rings with rollback, per-user apps, and what is installed where.

PowerShell 7.7.0 was released on November 10, 2026, and it ships no MSI. For Windows, its GitHub release has an .msixbundle and .zip files. The winget manifest for Microsoft.PowerShell 7.7.0.0 lists one installer type, msix, for x64, x86 and arm64. The manifest for 7.6.10.0, released the same day, still lists machine-scope MSIs for all three architectures, next to an MSIX.

Microsoft’s install page says: “Beginning with the PowerShell 7.7.0 release, there is no MSI package available. WinGet only installs the MSIX package.”

So a machine with the 7.6 MSI cannot reach 7.7 through a winget upgrade. It has to change install technology. Attestree’s agent runs winget as SYSTEM, so on November 11 we measured that change as SYSTEM on a test VM. We removed the MSI, installed the MSIX for the whole machine, and checked who could run pwsh afterwards.

The commands worked. Afterwards SYSTEM could not start pwsh by name, and users got it only after signing in again.

Update, November 15. Since platform 26.11.1500, Attestree keeps a machine like this on the 7.6 MSI and still updates it. That day four machines in our lab moved from the 7.6.9 MSI to the 7.6.10 MSI by themselves while 7.7.0 stayed held. What the platform does is in What Attestree does with a version that ships only an MSIX.

Update, November 17. Since platform 26.11.1700 you choose which installer family a machine with no PowerShell 7 gets. With msi chosen, such a machine gets the 7.6 MSI, or waits where its ring serves none. Three test VMs in our lab got it that day. That part is under A machine with no PowerShell 7.

What winget answers on a machine with the 7.6 MSI

On the test VM, with the 7.6.9 MSI installed, winget list --id Microsoft.PowerShell found the MSI copy as SYSTEM and as a signed-in user. It listed PowerShell 7-x64 at 7.6.9.0, offered 7.7.0.0, and exited 0.

We then ran the install of 7.7.0.0 as SYSTEM:

winget install --id Microsoft.PowerShell --exact --version 7.7.0.0 --installer-type msix --architecture x64 --scope machine --silent --accept-package-agreements --accept-source-agreements --source winget

It answered 0x8A15002B in about one second:

The install technology of the newer version specified is different from the current version installed. Please uninstall the package and install the newer version.

Nothing changed. There was no second copy, and SYSTEM and the user still ran 7.6.9.

The winget 1.29.380 source shows why:

  • When winget install finds the package already installed, it switches to the upgrade path. So install and upgrade with --version reach the same check.
  • An upgrade keeps only installers whose type fits the installed copy. MSI and WiX count as one family, and MSIX and Store as another. An installer also fits if one of its AppsAndFeaturesEntries declares a type of the installed family. The 7.7.0.0 manifest declares none.
  • With --version, a target with no fitting installer ends with the message above and 0x8A15002B, UPDATE_NOT_APPLICABLE.
  • Without --version, winget goes through the newer versions from the newest down and takes the first one with an installer it can use. If none has one, and at least one was skipped for its install technology, it answers 0x8A15008E, UPDATE_INSTALL_TECHNOLOGY_MISMATCH: “A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version.”

We read the last point in the source and did not run it. By that reading, a plain winget upgrade --id Microsoft.PowerShell on a machine at 7.6.9 takes the 7.6.10.0 MSI, and on a machine at 7.6.10 it answers 0x8A15008E. Microsoft’s install page describes the same rule: “If available in the new version, WinGet uses the same package format (MSI or MSIX) that was used to install the current version of PowerShell.”

0x8A15002B also means “no newer version” after an ordinary upgrade. A script that reads it as “already current” will report a 7.6 machine as up to date.

0x8A150014, “No installed package found matching input criteria”, is the third answer. On the VM it came only after the MSI was gone (below). Against a private REST source, our earlier article showed that winget upgrade --id looks for an installed entry that matches the manifest’s AppsAndFeaturesEntries. The 7.7.0.0 manifest has none, so there we would expect 0x8A150014 with the MSI still installed. We did not test 7.7.0 against a REST source.

The test VM

  • Windows 11 Pro 25H2, build 26200.8457, x64, on Hyper-V. Automatic Store app updates and automatic Windows updates were off.
  • winget v1.29.380, run as SYSTEM. The image’s App Installer 1.26.509.0 failed as SYSTEM with 0xC0000135, a failure that has its own page. We installed the VC++ x64 redistributable and provisioned App Installer from the winget-cli GitHub release v1.29.380 (package version 1.29.379.0).
  • PowerShell 7.6.9 from PowerShell-7.6.9-win-x64.msi, installed with its defaults. ProductCode {5417B253-1A6D-4638-BC94-743A6EC2E6F4}.
  • The public winget source. It offered Microsoft.PowerShell 7.7.0.0, 7.6.10.0 and 7.6.9.0.
  • Three local accounts besides the admin account: one signed in during the switch, one that had signed in once and then signed out, and one created after the switch.
  • “As SYSTEM” means a one-shot scheduled task with the SYSTEM principal. “Signs out and in” was always a reboot with autologon. Each measurement started from a checkpoint. We added /l*v logging to each msiexec call and changed nothing else in the commands.

Removing the MSI

msiexec.exe /x {5417B253-1A6D-4638-BC94-743A6EC2E6F4} /qn /norestart

As SYSTEM, with no pwsh running, this exited 0 in about 15 seconds. The uninstall entry, C:\Program Files\PowerShell\7, the Start menu shortcut and the App Paths key were gone. The PATH entry was gone from the registry. Processes already running kept the old PATH until the next reboot, including the environment Task Scheduler hands to SYSTEM tasks. winget list --id Microsoft.PowerShell then answered 0x8A150014, as SYSTEM and as the user.

With pwsh open in the user’s session, the uninstall also exited 0, not 3010. Restart Manager did not close pwsh. The process kept running from a folder that no longer existed. Windows moved its files to C:\Config.Msi\*.rbf, to be deleted at the next reboot. The MSI log and the Restart Manager event log disagree:

MSI (s) RESTART MANAGER: Successfully shut down all applications in the service's session that held files in use.
RestartManager id=10010 Warning | Application '...\pwsh.exe' (pid ...) cannot be restarted - Application SID does not match Conductor SID.
RestartManager id=10005 Information | Machine restart is required.

The uninstall left HKLM\SOFTWARE\Microsoft\PowerShellCore\InstallerProperties behind, which holds the MSI’s install options. That key matters if you go back to the MSI.

Installing the MSIX for the whole machine

After the removal, we ran the same winget install … --scope machine command as above, as SYSTEM. It exited 0 after about 50 seconds and printed “Successfully installed. Restart the application to complete the upgrade.”

  • Get-AppxProvisionedPackage -Online listed Microsoft.PowerShell at version 2026.1110.418.0. That is the bundle’s version, not 7.7.0.0.
  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications had a new key, Microsoft.PowerShell_2026.1110.418.0_neutral_~_8wekyb3d8bbwe.
  • C:\Program Files\WindowsApps held Microsoft.PowerShell_7.7.0.0_x64__8wekyb3d8bbwe, with pwsh.exe in it.
  • No uninstall entry for PowerShell existed anywhere: not in the 64-bit view, not in the 32-bit view, and not in any user hive.

The winget source explains the message. With --scope machine, winget stages the package and provisions it for all users. It then registers the package for the account running winget, except when that account is SYSTEM. The comment in its Deployment.cpp reads: “Packages cannot be registered under local system, just return registration deferred”. winget reports a deferred registration with that message and exits 0.

Add-AppxProvisionedPackage -Online -PackagePath <bundle> -SkipLicense, run as SYSTEM on the bundle downloaded beforehand, also worked. Provisioning took about 5 seconds. Users got pwsh at the same points as with winget, except that we did not repeat a new user’s second sign-in on this route. With this route, the download and the hash check are yours to do.

Without --scope machine

The same command without --scope machine failed after the MSI was already gone:

Installer failed with exit code: 0x80070057 : The parameter is incorrect.

The AppX deployment log named the cause:

id=708 Error | Deployment Register operation rejected on package Microsoft.PowerShell_2026.1110.418.0_neutral_~_8wekyb3d8bbwe ... because the Local System account is not allowed to perform this operation.

Windows staged the bundle, refused to register it for SYSTEM, and removed the staged files again. Nothing was installed or provisioned for anyone. With the MSI gone, the VM had no PowerShell 7 at all.

In the source, an MSIX install without --scope machine takes the per-user path. winget stages the package, registers it for the current account, and removes what it staged if that fails. As SYSTEM the register step cannot succeed. The same path counts one failure as success: if registration fails because the package is in use, winget marks it deferred and exits 0 with the “Restart the application” message. We read that in the source, and none of our runs hit it.

Who can run pwsh after the switch

Account Could it run pwsh?
User signed in during the switch, shell already open No. where pwsh found nothing, also 90 seconds later.
The same user, new shell No. Get-AppxPackage and the user’s own winget list showed the package as installed, but there was no pwsh.exe alias.
The same user, after signing out and in Yes, 7.7.0, from %LOCALAPPDATA%\Microsoft\WindowsApps\pwsh.exe.
User signed out during the switch, at the next sign-in Yes, 7.7.0.
User created after the switch, first sign-in No, checked about 75 seconds and again about 4 minutes after sign-in.
The same new user, second sign-in Yes, 7.7.0.
SYSTEM, by name (where pwsh, cmd /c pwsh -v) No. It is not on PATH, and the SYSTEM profile has no alias.
SYSTEM, by full path Yes. C:\Program Files\WindowsApps\Microsoft.PowerShell_7.7.0.0_x64__8wekyb3d8bbwe\pwsh.exe printed 7.7.0. The path contains the version.
Scheduled task as SYSTEM, action pwsh.exe No. LastTaskResult 0x80070002. The old path C:\Program Files\PowerShell\7\pwsh.exe failed the same way.

The AppX deployment log shows why a user can be listed as installed and still have nothing to run:

id=643 OnDemandRegisterPackage Microsoft.PowerShell_7.7.0.0_x64__8wekyb3d8bbwe add PackageUser row

Windows adds a row for the user and defers the real registration. A user who was signed in can get pwsh without signing out. We ran this in the user’s own session, as a standard user:

Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.PowerShell_8wekyb3d8bbwe

There was no error. The alias appeared at once, pwsh -v printed 7.7.0, and the shell the user had open since before the switch found pwsh one second later. The user already had a “PowerShell” Start menu entry. We did not test whether clicking it completes the registration.

Microsoft describes the SYSTEM side the same way. Its issue for it gives this repro, psexec -s -i pwsh.exe, with the result “The system cannot find the file specified.” Our scheduled task failed with 0x80070002, which is that same error, file not found.

What the switched machine reports

  • winget as SYSTEM, without a scope. winget list --id Microsoft.PowerShell answered 0x8A150014, “No installed package found”, on a correctly provisioned machine.
  • winget as SYSTEM, with --scope machine. The same list exited 0 and showed version 2026.1110.418.0, the bundle version.
  • winget as the user. It showed 7.7.0.0.
  • Programs and Features. Nothing. The MSIX writes no uninstall entry, and the MSI’s entry left with the MSI. A tool that inventories software from the uninstall keys sees no PowerShell 7 on this machine.

Three readings matched what we saw on the switched machine:

  • Provisioning: the AppxAllUserStore\Applications key above, or Get-AppxProvisionedPackage -Online. Both carry the bundle version, not the product version.
  • Product version: the folder name under C:\Program Files\WindowsApps, or PackageManager.FindPackages() called as SYSTEM, which returned Microsoft.PowerShell_7.7.0.0_x64__8wekyb3d8bbwe.
  • Per user: the pwsh.exe alias in the user’s %LOCALAPPDATA%\Microsoft\WindowsApps. Get-AppxPackage -AllUsers and the user’s own winget list said “installed” before the user could run pwsh.

Upgrading the MSIX later

On the switched machine, the same install command run again as SYSTEM answered 0x8A15002B, “Found an existing package already installed. Trying to upgrade … No available upgrade found.” winget upgrade for 7.7.0.0 answered 0x8A150014 without a scope, and 0x8A15002B with --scope machine. None of the three changed anything.

No 7.7.x newer than 7.7.0 existed, so we measured a real upgrade one step lower. We provisioned the 7.6.9 MSIX with the same command form. Its bundle version was 2026.1025.336.0. Then, with pwsh closed, we asked for 7.7.0.0:

Command as SYSTEM Exit code Result
The install command for 7.7.0.0 0x8A15002B “No available upgrade found.” Nothing changed.
winget upgrade … --scope machine --silent for 7.7.0.0 0x8A15002B Nothing changed.
winget upgrade … without a scope 0x8A150014 “No installed package found.”
The install command plus --force 0 The provisioned bundle moved to 2026.1110.418.0. The user ran 7.7.0 in a new shell at once, without signing out.

So the plain commands refuse a real, newer PowerShell. Before the upgrade, winget list --scope machine showed the installed version as 2026.1025.336.0, the bundle version. In the source, winget compares that installed version with the version it is asked for. 7.7.0.0 is lower than 2026.1025.336.0, so winget finds no upgrade.

With pwsh 7.6.9 open in the user’s session, the --force install also exited 0, and the provisioned bundle moved to 7.7.0. The user’s process kept running, and a new shell still started 7.6.9. After the user signed out and in, it started 7.7.0.

Add-AppxProvisionedPackage with the 7.7.0 bundle, from the same 7.6.9 base, made no version objection. It finished in about 5 seconds, and users moved to 7.7.0 at the same points as with --force.

Going back to the MSI

We tested three ways back.

  • After the MSI was removed. msiexec /i PowerShell-7.6.9-win-x64.msi /qn as SYSTEM exited 0. A line-by-line comparison with the state before the removal showed no difference: PATH, the uninstall entry, the UseMU value, the saved options, the Start menu shortcut, App Paths and the event manifest.

  • With options that were not the defaults. We installed the MSI with ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ENABLE_PSREMOTING=1 USE_MU=0 ENABLE_MU=0 DISABLE_TELEMETRY=1, removed it with msiexec /x, and installed it again with no properties. Every option came back. The MSI log shows it reading them from the saved values:

    MSI (s) Doing action: EnablePsRemoting_SetFromSaved
    MSI (s) Doing action: UseMU_SetFromSaved
    Property(S): ENABLE_PSREMOTING = 1
    Property(S): USE_MU = 0
    
  • Over the provisioned MSIX. The MSI installed with exit 0, and both copies stayed. After the user signed out and in, where pwsh listed the MSI path first and the user’s alias second, and pwsh -v printed 7.6.9. SYSTEM had pwsh by name again, at 7.6.9, and the scheduled task worked. The user’s winget list showed two rows.

The options come back because the MSI saves them under HKLM\SOFTWARE\Microsoft\PowerShellCore\InstallerProperties, and the uninstall leaves that key. Where someone deleted the key, we would expect the defaults instead. We did not test that.

Two limits apply. First, no PowerShell.7 WSMan plugin key appeared in either install, even with ENABLE_PSREMOTING=1. So the remoting property is proven to come back, and the remoting endpoint is not. Second, the uninstall removes the UseMU value under HKLM\SOFTWARE\Microsoft\PowerShellCore. The MSI’s USE_MU option is the opt-in to updates through Microsoft Update, per Microsoft’s install page. A reinstall reads it back, and a machine switched to the MSIX has no UseMU value.

What Microsoft says

  • The decision, April 10, 2026. The PowerShell Team’s post PowerShell MSI package deprecation and preview updates says: “We will no longer ship the MSI installer package for new PowerShell releases.” It also says: “For existing releases, including PowerShell 7.6, we will continue to provide MSI packages.” It names the limit we measured: “At this time, MSIX doesn’t support all use case scenarios that MSI enabled, such as remoting and execution by system-level services (like Task Scheduler).”
  • How long the 7.6 MSI stays. On April 21, 2026, Jason Helmick of Microsoft’s PowerShell team wrote in PowerShell discussion #27292: “PowerShell 7.6 is an LTS release and we will continue to include MSI support for its supported lifecycle”. The PowerShell support lifecycle page lists the end of support for PowerShell 7.6 (LTS) as 14-Nov-2028.
  • SYSTEM, October 29, 2026. In the same discussion, he wrote: “Installing the MSIX package as SYSTEM doesn’t work today”. He added: “Work to support this scenario is in progress and is targeted for next year. I don’t have a firmer date I can commit to yet.”
  • The tracking issues. PowerShell/PowerShell#27565, “Tracking: MSIX packaging gaps for PowerShell 7”, lists the SYSTEM context as its first blocker: “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.” Its sub-issues are #27562, “PS7-packaged: pwsh not discoverable in SYSTEM / LocalSystem context”, and #27563, “PS7-packaged: WinRM / PowerShell Remoting broken under MSIX”. On November 12 all three were open, and #27565 listed both gaps as “In progress”.
  • The install page. Install PowerShell 7 on Windows calls the MSI package the “Best choice for Windows Servers and enterprise deployment scenarios”.

Our test matches what Microsoft says, with one detail added. Installing the MSIX as SYSTEM with winget returned 0 and provisioned it. SYSTEM still could not start pwsh by name.

What we did not measure

  • A private REST source. Every run used the public winget source.
  • Other builds. We tested one: Windows 11 Pro 25H2, build 26200.8457, x64, with winget v1.29.380. We did not test Windows 11 24H2, Windows Server, Server Core, arm64, x86 or other winget versions.
  • An upgrade from 7.7.0 to a newer 7.7.x. None existed yet.
  • The 7.6.10 MSIX. Its manifest points to PowerShell-LTS-7.6.10.msixbundle, in the package family Microsoft.PowerShell-LTS_8wekyb3d8bbwe. The 7.6.9 and 7.7.0 bundles are in Microsoft.PowerShell_8wekyb3d8bbwe.
  • Removing the provisioned MSIX again.
  • More than one user signed in at once, domain or Entra ID accounts, and roaming profiles.
  • A sign-out and sign-in without a reboot.
  • How long a new user stays without pwsh beyond about 4 minutes after the first sign-in.
  • An msiexec /x that returns 3010. It never happened, also not with pwsh open.
  • Whether Microsoft Update still offers PowerShell to a switched machine, or installs the MSI there again.
  • The WinRM remoting endpoint, under either package.

What we recommend for machines on the 7.6 MSI

Keep them on the PowerShell 7.6 MSI until Microsoft ships SYSTEM support for the MSIX, then test that release before you switch. Microsoft keeps shipping 7.6 MSIs, and it lists 7.6 as supported until November 14, 2028.

Check what each winget answer means. 0x8A15002B with “The install technology of the newer version specified is different” means 7.7 has no MSI for this copy, and the machine is still on 7.6. By the source, 0x8A15008E means the same for an upgrade without --version.

Find what runs pwsh as SYSTEM before any switch. This lists the scheduled tasks that run as SYSTEM and name pwsh in their action. It works in Windows PowerShell 5.1 and PowerShell 7:

Get-ScheduledTask |
  Where-Object { $_.Principal.UserId -in 'SYSTEM', 'S-1-5-18' } |
  Where-Object { "$($_.Actions.Execute) $($_.Actions.Arguments)" -match 'pwsh' } |
  Select-Object TaskPath, TaskName

This covers scheduled tasks only. Microsoft’s issue for the SYSTEM gap also lists Windows services, MDM scripts and deployment agents as affected, so check those too.

If you switch a machine anyway, these are the conditions our measurements support:

  1. Always pass --scope machine, or use Add-AppxProvisionedPackage. Without the scope, the install fails after the MSI is gone.
  2. Treat the MSI removal and the MSIX install as one step. If the install does not succeed, reinstall the MSI with msiexec /i. A property-less reinstall brought back every option we tested.
  3. Check the result from provisioning and the WindowsApps folder name. Do not use the unscoped SYSTEM winget list or Programs and Features.
  4. Tell users they get pwsh at their next sign-in, and a new user at the second. Alternatively, run Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.PowerShell_8wekyb3d8bbwe in each user’s own session.
  5. For later upgrades, add --force to the install, or use Add-AppxProvisionedPackage. A 0x8A15002B on a retry of the same version means it is already provisioned.

What Attestree does with a version that ships only an MSIX

We added this section on November 15, when platform 26.11.1500 was released.

The recommendation above is to stay on the 7.6 MSI. Until platform 26.11.1300, Attestree could not follow it. An endpoint with the MSI was sent 7.7.0, winget refused it, and the failure could halt the rollout at its first ring.

Since 26.11.1500 the platform does three things for such an endpoint. The changelog has the wording for each release.

  • The endpoint keeps its copy. A version that ships only an MSIX is a named wait for an endpoint that holds the MSI. Its hold reads “installer family not offered”, and it does not count as a failed install.
  • The endpoint still gets updates on its own line. The update pipeline proposes the newest older version that still offers the endpoint’s installer family. For PowerShell today that is 7.6.10.0. If the catalog does not hold that version yet, it is ingested and tested in the sandbox first. Then it goes through the rings like any other update.
  • No copy is moved to the MSIX. Replace does not offer a switch to an MSIX, and automatic replace never makes one. The measurements above are why. After a machine-wide switch, SYSTEM cannot start pwsh by name.

On November 15, on 26.11.1500, four machines in our lab that held the 7.6.9 MSI were named 7.6.10.0 with the MSI installer and installed it by themselves. We left the 7.7.0 rollout held at its first ring the whole time.

One was a desktop. The other three were test VMs that were switched off. We started them, and about a minute after booting each began the upgrade. It took about three minutes, with nobody signed in. On all four the uninstall entry went from 7.6.9.0 to 7.6.10.0.

It took three releases to get there. We found each gap on our own machines after a release.

  • 26.11.1300 kept the MSI copy and proposed nothing. The catalog knew 7.6.10.0 only because an endpoint had reported it, and the pipeline did not ingest a version it knew that way.
  • 26.11.1400 ingested, tested and rolled out 7.6.10.0, and passed over any machine whose MSI showed only in its Windows uninstall entries. One of our desktops was such a machine. winget did not list its copy, and the planner took the copy’s version from winget alone.
  • 26.11.1500 reads the version from the uninstall entries too. On that release that desktop moved.

A machine with no PowerShell 7

We added this part on November 17, when platform 26.11.1700 was released.

The three points above are about a machine that holds the MSI. A machine with no PowerShell 7 has no copy to keep. winget’s order puts the MSIX first, and Attestree does not install an MSIX for the whole machine. So since 26.11.1600 such a machine gets the newest version of another family that its ring serves.

Since 26.11.1700 you can set that yourself. On the package’s page you choose the installer family for endpoints without a copy, and a group can set its own for its endpoints. With msi chosen for PowerShell, an endpoint without it gets the newest version its ring serves that offers an MSI, which today is 7.6.10.0. In a ring that serves only 7.7.0 it waits and is not given the MSIX. We have not seen that wait in our lab, where every ring that serves 7.7.0 also serves 7.6.10.0.

A choice never moves or removes a copy. We chose msi for PowerShell in our lab on November 17. Before the save, the console listed six machines that keep their MSI copy. After it, the platform had sent no removal and no replace to any of them.

Three test VMs had no PowerShell 7. Once their groups declared the package, each was named the 7.6.10.0 MSI at its next check-in and installed it. Afterwards each one’s inventory listed the uninstall entry PowerShell 7-x64 at 7.6.10.0.

SUBSCRIBE

Get the next field note by email.

Signing up adds you to the waitlist: we send each new post, and may write to you about early access.