Add support to export configuration for WinGet user settings #4210
Labels
Command-Configure
Issue related to WinGet Configuration
Issue-Feature
This is a feature request for the Windows Package Manager client.
Milestone
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.
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:
The text was updated successfully, but these errors were encountered: