Powershell

Powershell 7 – GetAppxPackage funktioniert nicht

Unter Windows 10 nach Installation von Powershell 7 funktioniert GetAppxPacke nicht mehr.

Fehlermeldung lautet:

Lösung hier gefunden:

Import-Module Appx

Import-Module: Operation is not supported on this platform. (0x80131539)

Import-Module Appx -UseWinPS

WARNING: Module Appx is loaded in Windows PowerShell using WinPSCompatSession remoting session;
please note that all input and output of commands from this module will be deserialized objects.
If you want to load this module into PowerShell please use ‚Import-Module -SkipEditionCheck‘ syntax.

Anschließend funktioniert GetAppxPackage auch unter PowerShell7 wieder