winget-cli: Winget command missing from server 2019
Winget command missing from server 2019
Environment
[winget --info]
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.server 17763.1
Package: Microsoft.DesktopAppInstaller v1.0.41331.0
Any other software?
Steps to reproduce
- Install the latest Windows Package Manager
- I cannot find the Windows Package Manager though I have it installed.
Expected behavior
Winget should be available from the command line.
Actual behavior
Winget is not available from the command line. The only way to get it to work,
- enable developer mode in settings
- execute the following powershell command Get-AppxPackage Microsoft.DesktopAppInstaller | %{ Invoke-CommandInDesktopPackage -PackageFamilyName $_.PackageFamilyName -AppId winget -Command C:\Windows\System32\cmd.exe -PreventBreakaway }
- navigate to the app package and run AppInstallerCli.exe
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 8
- Comments: 15 (7 by maintainers)
I think winget for windows server core is very needed and critical
Hi @denelon I fully agree with your challenges and concern.
As you can mostly only speak for your product, I would propose to make a check for this policy (it is in registry policies) and if set throw an error message when trying to download.
In my professional role I always try to convince enterprises to block the app access to private MS Store via GPO but not blocking the communication as preinstalled apps would not update, neither modern drivers would work correctly as DCH driver have thankfully separated their tools into the store. I am curious how this will work with Windows 11 when the business store is gone.
In addition to this it would also compromise the ability to use the business store (as long it will remain) for enterprise deployments.
Doubt that enterprises that fully block the store would use Winget.
These enterprises from SMB to SMC mostly use
I hope this helps you to consider the options I see regularly in the wild.
How to create winget alias - https://github.com/al-cheb/winget_install_script/blob/main/Install-WinGet.ps1