-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Command-ConfigureIssue related to WinGet ConfigurationIssue related to WinGet ConfigurationIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Needs-TriageIssue needs to be triagedIssue needs to be triaged
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget configure
Brief description of your issue
Installing a new Microsoft Store app causes winget configure to fail because of Package agreements were not agreed to.
Steps to reproduce
- Create a very basic DSC configuration with a Microsoft Store app which wasn't installed before:
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.3
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
winget:
processor:
identifier: "dscv3"
resources:
- name: Lively Wallpaper
type: Microsoft.WinGet/Package
metadata:
description: "Install Lively Wallpaper from Microsoft Store"
properties:
id: "9NTM2QC6QWS7"
source: "msstore"- Apply that configuration with:
winget configure --file lively_wallpaper.winget - Watch the command fail
Workaround:
- Manually install the app beforehand using:
winget install 9NTM2QC6QWS7 --source msstore - Get prompted to agree to the agreements
- Confirm with
Y
After using that workaround, I can run the same winget configure without any further issues.
Expected behavior
I should get prompted to agree to the package agreements. Afterwards, the configuration should continue to get applied.
Actual behavior
The winget configure command fails because of Package agreements were not agreed to.
Logs:
2026-03-14 10:12:59.662 [CORE] WinGet, version [1.28.220], activity [{069B64FE-4978-424C-814D-D6039B3FF3B9}]
2026-03-14 10:12:59.662 [CORE] Process: winget.exe[27396], Offset: 00007FFC36E70000
2026-03-14 10:12:59.662 [CORE] OS: Windows.Desktop v10.0.26220.7961
2026-03-14 10:12:59.662 [CORE] Command line Args: "C:\Users\sknit\AppData\Local\Microsoft\WindowsApps\winget.exe" configure --file .\config.winget --accept-configuration-agreements
2026-03-14 10:12:59.662 [CORE] Package: Microsoft.DesktopAppInstaller v1.28.220.0
2026-03-14 10:12:59.662 [CORE] IsCOMCall:0; Caller: winget-cli
2026-03-14 10:12:59.668 [CLI ] WinGet invoked with arguments: 'configure' '--file' '.\config.winget' '--accept-configuration-agreements'
2026-03-14 10:12:59.668 [CLI ] Found subcommand: configure
2026-03-14 10:12:59.668 [CLI ] Leaf command to execute: root:configure
2026-03-14 10:12:59.669 [CLI ] Executing command: configure
2026-03-14 10:12:59.670 [FAIL] WindowsPackageManager.dll!00007FFC36F7127D: LogHr(1) tid(2934) 80070057 The parameter is incorrect.
2026-03-14 10:13:00.423 [CONF] The set processor factory is running in limit mode: False.
2026-03-14 10:13:00.438 [CONF] GetUnitProcessorDetails is running in limit mode: False.
2026-03-14 10:13:04.765 [CONF] The set processor factory is running in limit mode: False.
2026-03-14 10:13:04.768 [CONF] [REPO] Opening database for ReadWrite at 'C:\Users\sknit\AppData\Local\Microsoft/WinGet\State\Configuration\History\config.db'
2026-03-14 10:13:04.768 [CONF] [SQL] Opening SQLite connection #1: 'C:\Users\sknit\AppData\Local\Microsoft/WinGet\State\Configuration\History\config.db' [2, 0]
2026-03-14 10:13:04.777 [CONF] [REPO] Opening database for ReadWrite at 'C:\Users\sknit\AppData\Local\Microsoft/WinGet\State\Configuration\History\config.db'
2026-03-14 10:13:04.777 [CONF] [SQL] Opening SQLite connection #2: 'C:\Users\sknit\AppData\Local\Microsoft/WinGet\State\Configuration\History\config.db' [2, 0]
2026-03-14 10:13:04.793 [CONF] GetUnitProcessorDetails is running in limit mode: False.
2026-03-14 10:13:16.190 [CONF] Configuration unit Microsoft.WinGet/Package[Lively Wallpaper] failed with code 0x8a15c106 and error message:
2026-03-14T09:13:10.985337Z WARN Executable 'pwsh' not found for operation 'get' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:10.993665Z WARN Executable 'pwsh' not found for operation 'set' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:11.001924Z WARN Executable 'pwsh' not found for operation 'test' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:11.010348Z WARN Executable 'pwsh' not found for operation 'export' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:13.580137Z WARN Executable 'pwsh' not found for operation 'get' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:13.593316Z WARN Executable 'pwsh' not found for operation 'set' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:13.606390Z WARN Executable 'pwsh' not found for operation 'test' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:13.619486Z WARN Executable 'pwsh' not found for operation 'export' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:15.979611Z ERROR Command: Resource 'winget' [exit code -1978335167] [CLI ] Package agreements were not agreed to.
[CLI ] Terminating context: 0x8a150041 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\PromptFlow.cpp:db
[CLI ] Terminating context: 0x8a150041 at :0
Microsoft.Management.Configuration.Processor.Exceptions.InvokeDscResourceException: Failed when calling `Set` for resource: Microsoft.WinGet/Package [<no module>] Message: '2026-03-14T09:13:10.985337Z WARN Executable 'pwsh' not found for operation 'get' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:10.993665Z WARN Executable 'pwsh' not found for operation 'set' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:11.001924Z WARN Executable 'pwsh' not found for operation 'test' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:11.010348Z WARN Executable 'pwsh' not found for operation 'export' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:13.580137Z WARN Executable 'pwsh' not found for operation 'get' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:13.593316Z WARN Executable 'pwsh' not found for operation 'set' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:13.606390Z WARN Executable 'pwsh' not found for operation 'test' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:13.619486Z WARN Executable 'pwsh' not found for operation 'export' for resource 'Microsoft.DSC/PowerShell'
2026-03-14T09:13:15.979611Z ERROR Command: Resource 'winget' [exit code -1978335167] [CLI ] Package agreements were not agreed to.
[CLI ] Terminating context: 0x8a150041 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\PromptFlow.cpp:db
[CLI ] Terminating context: 0x8a150041 at :0
'
at Microsoft.Management.Configuration.Processor.DSCv3.Schema_2024_04.DSCv3.SetResourceSettings(ConfigurationUnitInternal unitInternal, ProcessorRunSettings runSettings)
at Microsoft.Management.Configuration.Processor.DSCv3.Unit.DSCv3ConfigurationUnitProcessor.ApplySettingsInternal()
at Microsoft.Management.Configuration.Processor.Unit.ConfigurationUnitProcessorBase.ApplySettings()
2026-03-14 10:13:16.196 [CLI ] Terminating context: 0x8a15c005 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\ConfigurationFlow.cpp:88e
Environment
Windows Package Manager v1.28.220
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26220.7961
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.28.220.0
Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy DisabledReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Command-ConfigureIssue related to WinGet ConfigurationIssue related to WinGet ConfigurationIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Needs-TriageIssue needs to be triagedIssue needs to be triaged