microsoft / microsoft/winget-cli
winget dsc export --all does not include user settings
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Relevant area(s)
WinGet CLI, DSC Resource
Relevant command(s)
No response
Brief description of your issue
After running winget dsc export --all I opened the resulting configuration file. I observed Microsoft.WinGet/UserSettingsFile had it's properties set to settings: {} even though I have several user settings configured
Steps to reproduce
- Use
winget settingsto open your settings file - Add content to your settings file
My Settings File
{
"$schema": "https://aka.ms/winget-settings.schema.json",
// For documentation on these settings, see: https://aka.ms/winget-settings
// "source": {
// "autoUpdateIntervalInMinutes": 5
// },
"experimentalFeatures": {
"configureSelfElevate": true
},
"installBehavior": {
"portablePackageUserRoot": "D:\\Trenly\\WinGet\\Packages\\",
"preferences": {
"architectures": ["x64"],
"installerTypes": ["wix", "msi", "nullsoft"]
}
},
"visual": {
"enableSixels": false,
"anonymizeDisplayedPaths": true,
"progressBar": "retro"
},
"logging": {
"level": "verbose",
"channels": ["all"]
},
"source": {
"autoUpdateIntervalInMinutes": 15
},
"telemetry": {
"disable": false
},
"network": {
"downloader": "default",
"doProgressTimeoutInSeconds": 60
},
"interactivity": {
"disable": false
}
}
Expected behavior
WinGet user settings to be exported successfully
Actual behavior
No user settings exported
WinGet-2025-11-14-07-03-21.505.log
Environment
PS C:\Users\kaleb> winget --info
Windows Package Manager v1.12.350
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26200.7171
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.27.350.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing winget dsc export --all after configuring settings with winget settings, then inspect the exported Microsoft.WinGet/UserSettingsFile entry and the attached log. Done means the exported configuration contains the configured user settings instead of settings: {}.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100