Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate configuration from machine state #3274

Open
denelon opened this issue May 26, 2023 · 3 comments
Open

Generate configuration from machine state #3274

denelon opened this issue May 26, 2023 · 3 comments
Assignees
Labels
Command-Configure Issue related to WinGet Configuration Issue-Feature This is a feature request for the Windows Package Manager client.
Milestone

Comments

@denelon
Copy link
Contributor

denelon commented May 26, 2023

Description of the new feature / enhancement

I want to be able to generate a configuration based on my current machine.

Reference work:
https://devblogs.microsoft.com/scripting/reverse-desired-state-configuration-how-it-works/

There is likely some needed work to enable reverse DSC.
We would need to "inspect" the current system, pull down associated DSC resources, and generate a configuration.

Customer verbatim

jouni nieminen

Proposed technical implementation details

winget configure export <path to file>
This would iterate over installed packages and generate a WinGet Configuration.
If an associated DSC resource is present in the manifest for the package, it would call "export" via DSC v3 and add the configuration as a dependency on install (using Microsoft.WinGet.DSC).

Additionally, the export could include the Windows Settings using Microsoft.Windows.Developer.

Depends on:

@LarryOsterman
Copy link
Member

I might suggest improving the title so that a search finds it? "Reverse DSC" doesn't really allow someone who isn't on the team to understand it, and it would probably result in fewer duplicate bugs.

@denelon denelon changed the title Reverse DSC Generate configuration from machine state (Reverse DSC) Jun 13, 2023
@denelon
Copy link
Contributor Author

denelon commented Aug 21, 2023

The work over at the PowerShell/DSC GitHub project is tracked via:

@denelon
Copy link
Contributor Author

denelon commented Aug 24, 2023

This would depend on:

We're thinking something like:

For getting the configuration from a single package (we're also thinking about a set of packages)
winget configure export <PackageID> -o *.dsc.yaml

For getting the entire configuration from all installed packages
winget configure export -o *.dsc.yaml

@denelon denelon added this to the 1.8 Client milestone Aug 24, 2023
@denelon denelon modified the milestones: 1.8 Client, v1.7 Client Oct 12, 2023
@denelon denelon changed the title Generate configuration from machine state (Reverse DSC) Generate configuration from machine state ~(Reverse DSC)~ Oct 13, 2023
@denelon denelon changed the title Generate configuration from machine state ~(Reverse DSC)~ Generate configuration from machine state Oct 13, 2023
@denelon denelon added this to WinGet Jan 3, 2024
@denelon denelon modified the milestones: v1.7 Client, 1.8 Client Jan 4, 2024
@denelon denelon modified the milestones: 1.8 Client, 1.9 Client May 28, 2024
@denelon denelon modified the milestones: 1.9 Client, 1.10 Client Oct 8, 2024
@denelon denelon moved this to In Progress in WinGet Oct 22, 2024
@denelon denelon moved this from In Progress to On Hold in WinGet Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Configure Issue related to WinGet Configuration Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
Status: On Hold
Development

No branches or pull requests

3 participants