microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.3k stars 1.45k forks source link

PowerShell DSC Resources for WinGet #2697

Open denelon opened 2 years ago

denelon commented 2 years ago

Description of the new feature / enhancement

I would like to be able to use PowerShell DSC to install and configure WinGet.

Several issues have made mention to challenges associated with getting WinGet installed (or in a valid state) on different Windows SKUs or environments:

@cdhunt also made a PR with a PowerShell script to help with this challenge:

A couple of mentions have also suggested PowerShell DSC:

Proposed technical implementation details

As we are nearing the first release of WinGet PowerShell modules and cmdlets, this would be aligned with that same effort.

denelon commented 1 year ago

Naming things is hard:

denelon commented 1 year ago

We should consider the options for making this work in the System context in terms of getting "WinGet" on the system, and then when the user logs in, the actual "registration" for the user is "faster".