Terminal error message: Access denied
Brief description of your issue
I know this bug has been posted in issues before this, but I still haven't solved my problem after scrutinizing those issues, and my winget still doesn't work, so I'm reopening a new issue, so I hope you guys can understand me.
My current version of winget is "1.21.3482.0", which is the latest version of winget, and I have manually added "%userprofile%\AppData\Local\Microsoft\WindowsApps" to my system environment variables. But I can't use any commands of winget in terminal, it will tell me that access is denied.
My Windows version information is as follows: Version: Windows 11 Professional Version: 23H2 OS version: 22631.3227 Experience: Windows Feature Experience Pack 1000.22687.1000.0
Steps to reproduce
$ winget
Expected behavior
I don't know.
Actual behavior
程序“winget.exe”无法运行: 拒绝访问。所在位置 行:1 字符: 1
+ winget
+ ~~~~~~。
所在位置 行:1 字符: 1
+ winget
+ ~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
Environment
Name : Microsoft.DesktopAppInstaller
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 1.21.3482.0
PackageFullName : Microsoft.DesktopAppInstaller_1.21.3482.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.21.3482.0_x64__8wekyb3d8bbwe
IsFramework : False
PackageFamilyName : Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : True
Dependencies : {Microsoft.UI.Xaml.2.7_7.2208.15002.0_x64__8wekyb3d8bbwe, Microsoft.VCLibs.140.00.UWPDesktop_14.0.3
3519.0_x64__8wekyb3d8bbwe, Microsoft.DesktopAppInstaller_1.21.3482.0_neutral_split.language-zh-hans
_8wekyb3d8bbwe, Microsoft.DesktopAppInstaller_1.21.3482.0_neutral_split.scale-100_8wekyb3d8bbwe...}
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok
@JohnMcPMS @yao-msft @ryfu-msft @msftrubengu @Trenly @denelon @florelis @jedieaston @ashpatil-msft @AmelBawa-msft @jsoref @sreadingMSFT @mapill-msft @KevinLaMS
@SobreroD @Scarjit @bckelley
Don't......don't do that....
Don't......don't do that....
This bug that I can't use winget still exists at the moment, can you please tell me how to fix this bug.
@nianBroken Just so you know, when you @ mention people, they get an e-mail.
Here are a couple of additional options:
Check you App Execution Alias
Have you gone through the troubleshooting steps on the troubleshooting page?