winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

PowerShell DSC Resources for WinGet

Open denelon opened this issue 3 years ago • 1 comments

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

denelon avatar Nov 14 '22 21:11 denelon

Naming things is hard:

  • https://github.com/microsoft/winget-cli/issues/2697

denelon avatar Feb 27 '23 17:02 denelon

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".

denelon avatar Mar 07 '23 21:03 denelon