winget-cli
winget-cli copied to clipboard
Error Code 0x80070043: The network name cannot be found
Brief description of your issue
This seems to only apply to .exe
installers. I have 2 accounts, a User and Administrator account.
I run winget install/update <package>
on the User account, and if the installer is a .exe
and requires administrator I get the "The network name cannot be found" error.
Steps to reproduce
- Create a User account, one that is not an Administrator.
- On the User account, run
winget install ViGEm.ViGEmBus
(another example I found isDocker.DockerDesktop
) - It will download an installer that is a
.exe
into%LocalAppData%\Temp\WinGet\???
- A UAC prompt will popup (as expected), however after granting permission the install will error
Expected behavior
I expect it to install the program normally, show the UAC, get permission, continue installing.
Actual behavior
After the UAC it's showing the "The network name cannot be found" error.
I did find a temporary fix. If you give the Administrators
group Full Control permissions on the %LocalAppData%\Temp\WinGet
directory, and then open the .exe
installer directly (NOT through winget install/update
), it will continue installing normally. However this is only temporary as the next time you run winget install/update
the permissions you set on the folder get wiped.
Me
is the User account, not an Administrator.
Environment
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22621.1105
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0
I can confirm that I have this same issue. Somehow Administrators don't have permission for winget's temp folder.
This looks like it's related to:
- #2740
@denelon Yes. Seems to be the same issue.
I can confirm this too.
I'm going to close this as a Duplicate of #2740.
The issue will still be linked, but it should help make sure we get more 👍 on one issue to help raise priority.