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.35k stars 1.45k forks source link

WinGet Configuration Export includes all installed packages #4940

Open denelon opened 2 weeks ago

denelon commented 2 weeks ago

Description of the new feature / enhancement

The first step in a single command to capture state is to iterate over all installed packages and include them in the WInGet Configuration File generated by winget configure export.

Note: This will not likely be able to resolve sequencing dependencies in the short term.

This should work for both scenarios when PowerShell DSC v2 (Invoke-DscResource) and in DSC v3 (DSC.exe) are used to apply a single unit of configuration.

Proposed technical implementation details

No response