-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Brief description of your issue
Recently Microsoft.Windows.Developer/Taskbar DSC resource started failing to hide Windows 11 Widgets button.
Steps to reproduce
On the latest publicly released Windows 11:
- Right-Click on Windows Taskbar, select
Taskbar settingsand ensure that Widgets toggle is set toOn. - Install PowerShell 7 and open it command prompt as administrator
- To ensure the latest WinGet is installed run
Repair-WinGetPackageManager -Latest -Force(potentially some dependencies need to be installed manually by following steps in https://learn.microsoft.com/en-us/windows/package-manager/winget/#install-winget-on-windows-sandbox) - Run:
Install-Module Microsoft.WinGet.Client -Scope AllUsers -ForceandInstall-Module Microsoft.WinGet.Configuration -AllowPrerelease -Scope AllUsers -Force - Unpack attached
repro.dsc.zipto the current folder to getrepro.dsc.yaml - Run:
(Get-WinGetConfiguration -File .\repro.dsc.yaml | Invoke-WinGetConfiguration -AcceptConfigurationAgreements).UnitResults | Format-List
Expected behavior
No error and Widgets item is turned off
Actual behavior
State : Completed
PreviouslyInDesiredState : False
RebootRequired : False
Type : Taskbar
ResultCode : -1978285818
Message : The configuration unit failed while attempting to apply the desired state.
Description : Attempted to perform an unauthorized operation.
Details : at Set, C:\Users\<user>\AppData\Local\Microsoft\WinGet\Configuration\Modules\Microsoft.Windows.Developer\0.2.1\Microsoft.Windows.Developer.psm1: line 330
Environment
Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.4169
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.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
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 Disabledmikamins and Ermesx
Metadata
Metadata
Assignees
Type
Projects
Status
To Do