microsoft / microsoft/winget-cli

winget dsc export --all does not include user settings

Open
#5,880 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DSC-Resource Issue-Bug
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
  1. Use winget settings to open your settings file
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.