winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

winget dsc export --all does not include user settings

Open Trenly opened this issue 1 month ago • 0 comments

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

Trenly avatar Nov 14 '25 13:11 Trenly