Skip to content

Instantly share code, notes, and snippets.

@simonholm
Last active December 17, 2022 07:47
Show Gist options
  • Save simonholm/38f9f3e24af5ceb9f5e9182bdb692228 to your computer and use it in GitHub Desktop.
Save simonholm/38f9f3e24af5ceb9f5e9182bdb692228 to your computer and use it in GitHub Desktop.
powershell 7 import-module appx issue (0x80131539), interim solution
# remove build in apps, source https://www.askvg.com/guide-how-to-remove-all-built-in-apps-in-windows-10/
# don't work with powershell 7 though
# source https://github.com/PowerShell/PowerShell/issues/13138#issuecomment-849965912
import-module appx -usewindowspowershell
# other examples
# source https://github.com/PowerShell/PowerShell/issues/13138#issuecomment-851366340
Import-Module -Name Appx -UseWindowsPowerShell -WarningAction SilentlyContinue
# using the compatibility feature
# source https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_windows_powershell_compatibility?view=powershell-7.1
# or temporary change back to version eg. 5 in that version appx works per default
powershell.exe -version 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment