Repository navigation
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget install
Brief description of your issue
On my PC, a recently reinstalled Windows 11 23H2, I experience that Winget installed apps with a PortableCommandAlias value does not add a symlink to the "%LOCALAPPDATA%/Microsoft\WinGet\Links" folder. But when I do it on a Windows Sandbox instance, it adds it without issues.
Testing this with the winget install int128.kubelogin which manifest is seen with a PortableCommandAlias here: https://github.com/microsoft/winget-pkgs/blob/master/manifests/i/int128/kubelogin/1.35.2/int128.kubelogin.installer.yaml
I tried updating Winget from the latest Github release without any success and I am running the latest version:
winget --version
v1.28.190
Steps to reproduce
winget install int128.kubelogin
Get-Item $env:LOCALAPPDATA/Microsoft\WinGet\Links\kubectl-oidc_login
Expected behavior
Actual behavior
Environment
[winget --info]
Windows Package Manager v1.28.190
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.6491
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.28.190.0
Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled
Activity
tonur commentedon Feb 13, 2026
Seems like more people are experiencing this here: int128/kubelogin#926 (comment)
tonur commentedon Feb 13, 2026
I can confirm that this users workaround (Running the
winget install int128.kubelogincommand as Administrator) works: int128/kubelogin#926 (comment)But I have still no idea why it works on a fresh install, and not on certain users computers without Administrator.
UnownPlain commentedon Feb 14, 2026
This is probably #3437
denelon commentedon Feb 17, 2026
Symbolic links are only available to portable applications in WinGet if Developer Mode is enabled or the user is installing with elevated privileges.
WinGet is only able to add portable applications explicitly on the path otherwise.
denelon commentedon Feb 17, 2026
The Windows Sandbox defaults to elevated privileges so symbolic links are available.
Notably, some portable applications have dependencies on libraries and in those cases symbolic links will not work, so the WinGet manifest explicitly requires it.
tonur commentedon Feb 18, 2026
Demitrius Nelon (@denelon) can I then create a different bug in order to report a wrong message?
This "Command line alias added: x" message is completely wrong when installing on a shell with no elevated privileges.
I will add a comment in the WinGet-pkgs repo for Kubelogin regarding that this should always be installed with elevated privileges.
tonur commentedon Feb 18, 2026
I created a new bug here: #6058
tonur commentedon Feb 18, 2026
Also, just to confuse this even more, I can successfully replicate that the Command line alias is actually added when I test this in a VM:
No elevated privileges, just Windows Terminal without admin. I am so confused as to why this works in a VM but not outside of the VM.
I knew that I was not hallucinating when I tested it here: int128/kubelogin#926 (comment)
cnotin commentedon Jun 18, 2026
Same observation here! And indeed it's because it does so with a symlink which requires admin permissions