PowerShell DSC Resources for WinGet
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:
- https://github.com/microsoft/winget-cli/issues/2040
- https://github.com/microsoft/winget-cli/issues/2081
- https://github.com/microsoft/winget-cli/issues/2222
@cdhunt also made a PR with a PowerShell script to help with this challenge:
- https://github.com/microsoft/winget-cli/pull/2474
- https://github.com/microsoft/winget-cli/issues/2230
- https://github.com/microsoft/winget-cli/issues/2434
A couple of mentions have also suggested PowerShell DSC:
- https://github.com/microsoft/winget-cli/issues/698#issuecomment-1070044758
- https://github.com/microsoft/winget-cli/issues/291#issuecomment-632922571
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.
- #221
Naming things is hard:
- https://github.com/microsoft/winget-cli/issues/2697
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".