r/PowerShell • u/Much-Journalist3128 • Jan 13 '26
Question Winget in the SYSTEM context unable to extract archives
Hello
As the title says, if I run the winget script in the SYSTEM context, I can't get it to extract archives and install packages.
Have others also reported this issue before, is this a known limitation, or is it my code that's at fault?
0
Upvotes
5
u/BlackV Jan 13 '26
both
it is "by design" and its your code
there are several posts here describing out to use winget in the system context
11
u/DR_D_WEB Jan 13 '26
Post your code dude man. We need to see exactly what you're doing to have any hope of giving real advice.
1
u/iiiRaphael Jan 13 '26
If you're in a large corporate environment, there can be behind-the-scenes authentication setup through a proxy server for internet access which prevents BUILTIN\SYSTEM from accessing source files.
2
u/420GB Jan 13 '26 edited Jan 13 '26
Try changing the extraction method to "tar" in the settings. The default Archive extraction method is some dumb Windows API that doesn't even work on all supposedly supported versions of Windows.
1
u/BWMerlin Jan 14 '26
https://learn.microsoft.com/en-us/windows/package-manager/winget/troubleshooting#system-context