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

Add support to export configuration for WinGet user settings #4210

Closed
denelon opened this issue Feb 28, 2024 · 2 comments
Closed

Add support to export configuration for WinGet user settings #4210

denelon opened this issue Feb 28, 2024 · 2 comments
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 Feb 28, 2024

Description of the new feature / enhancement

I want to be able to export the WinGet user settings using winget configure export.

The syntax might initially look like:
winget configure export --package Microsoft.AppInstaller --module Microsoft.WinGet.DSC --resource WinGetUserSettings --output exported.configuration.dsc.yaml

The DSC Resource would return the object containing the JSON formatted collection of settings suitable for WinGet to generate a configuration file.

The configuration file would contain the YAML necessary to install WinGet (Microsoft.AppInstaller) and then apply the user settings as they are configured on Windows for the current user.

Note: The dependsOn keyword would ensure the settings aren't applied until after WinGet is installed/upgraded.

Related to:

Proposed technical implementation details

Implement the new export method in a PowerShell DSC v2 class-based resource so I can capture the user settings for WinGet.

WinGet would likely need a new PowerShell cmdlet like "Export-DscResource" to call the export method on the resource. If no export method is available, the cmdlet would provide the appropriate error so WinGet as an orchestrator could provide this information to the user.

These are typically the settings in a user's settings.json file. A few are included below for reference:

  • TTL for the source.msix package
  • Progress Bar
  • Network settings
@denelon denelon added the Issue-Feature This is a feature request for the Windows Package Manager client. label Feb 28, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Feb 28, 2024
@denelon denelon added Command-Configure Issue related to WinGet Configuration and removed Needs-Triage Issue need to be triaged labels Feb 28, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@denelon
Copy link
Contributor Author

denelon commented Oct 8, 2024

This is working.

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
None yet
Development

No branches or pull requests

1 participant