

Script 2.0.This method is suitable for those users who have originally removed modern applications from the Windows image, as well as owners of Windows 10 LTSC Enterprise, which does not have any preinstalled UWP applications at all. + CategoryInfo : InvalidResult: (Pscx:String), Exception Actually all modern apps contain this XML file in their program files folder and this XML file is required to restore the app.

My Powershell v5.1 won't install almost any module automatically using install-module whereas manually installation does work.įirst, when I run install-module, it would download the module then throw an error, say the pscx module: PackageManagement\Install-Package : Package 'Pscx' failed to be installed because: Specified cast is not valid.Īt C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.0.4\PSModule.psm1:9307 char:21 As you can see, the above mentioned command requires an essential parameter which is the full path of appxmanifest.xml file.
