Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 540

PowerShell • Error Running RemoveAppx command

$
0
0
Product: PowerShell Studio 2024 (64 Bit)
Build: v5.8.251
OS: Windows 11.0.22631
PS Version(s): 5.1.22621.1

I have a script and it is setup to be a service. I am trying to run Remove-AppxPackage or Remove-AppxProvisionedPackage and I get the below error. Seems like I have been able to run this without issues until one of the updates I did for Studio.

Code:

System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> System.TypeInitializationException: The type initializer for 'WinRT.Projections' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Statistics: Posted by B Daring — Tue Jan 07, 2025 10:09 am



Viewing all articles
Browse latest Browse all 540

Trending Articles