Add support to export configuration for WinGet administrator settings #4211
Labels
Command-Configure
Issue related to WinGet Configuration
Issue-Feature
This is a feature request for the Windows Package Manager client.
Description of the new feature / enhancement
I want to be able to export the WinGet adminitrator settings using
winget configure export
.The syntax might initially look like:
winget configure export --package Microsoft.AppInstaller --module Microsoft.WinGet.DSC --resource WinGetAdministratorSettings --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 administrator 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 only an administrator can apply. A few are included below for reference:
The text was updated successfully, but these errors were encountered: