Open JamesFCroft opened 1 week ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
+1 same problem here
Winget has never worked properly, especially on clean installations, even though it comes pre-installed. The installation is often broken, preventing it from running or updating. The best solution is to install it directly.
Start-BitsTransfer -Source "https://github.com/microsoft/winget-cli/releases/download/v1.8.1911/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -Destination "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"
Add-AppxPackage -Path "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"
Workaround: In my case, the only solution that worked was separately installing the latest Microsoft Visual C++ Redistributable, followed by a reboot.
Workaround: In my case, the only solution that worked was separately installing the latest Microsoft Visual C++ Redistributable, followed by a reboot.
Yes! installing VC_redist.x64 fixed this for me Thank you for taking the time to reply!
Brief description of your issue
Winget not running as system on a fresh install of Windows
This means it cannot be used with Intune to roll out software
Steps to reproduce
Install a fresh copy of Windows (I did mine as a VM) Windows 11 pro and Windows 11 enterprise tested, 23H2 and 22H2 SW_DVD9_Win_Pro_11_22H2.24_64BIT_English_Pro_Ent_EDU_N_MLF_X23-81095 Download PSexec From an admin command prompt, Run PSexec -s CMD run whoami to confirm you are NT\system. cd c:\program files\windowsapps dir to get the path, something like Microsoft.DesktopAppInstaller_8wekyb3d8bbwe CD to that directory Run winget.exe No output will be displayed nor logs appear in the diagoutput directory, it should go to c:\windows\temp if run as system. No install commands work, or viewing version of winget
Drop out to a normal command prompt as admin user and it works fine.
Expected behavior
Packages should install - blogs from 2023 as discussed on this site, report it is working, with the only issue of the exe not being in a PATH system variable Logs should appear for every run
Actual behavior
Fails to run without any errors reported
Environment