Appx module no longer imports in Powershell Core
See original GitHub issueSteps to reproduce
Import-Module Appx
Expected behavior
Successfully imports & can run Add-AppxPackage etc. This worked in 7.0.3, but now forces me to switch to Windows Powershell for some scripts.
Actual behavior
Import-Module: Operation is not supported on this platform. (0x80131539)
Environment data
Name Value
---- -----
PSVersion 7.1.0
PSEdition Core
GitCommitId 7.1.0
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
PowerShell Core and AppX package management
Reading the blog post, this seems a bit safer than importing a Windows module (e.g. AppX ) from PowerShell Core, since among other...
Read more >Import-Module (Microsoft.PowerShell.Core)
The Import-Module cmdlet adds one or more modules to the current session. ... This feature lets you use cmdlets that are implemented in...
Read more >Get-Module (Microsoft.PowerShell.Core)
The Get-Module cmdlet lists the PowerShell modules that have been imported, or that can be imported, into a PowerShell session. Without parameters ...
Read more >Powershell Function App fails to import module
The function app now fails when loading the Powershell Module (MSOnline) using the Import-Module cmdlet, like this:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The APPX module can be loaded like this:
PowerShell 7.2 (Windows 11):