ChrisTitusTech / winutil

Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
MIT License
24.2k stars 1.47k forks source link

Disable widgets in task bar #2886

Open djspatule opened 1 month ago

djspatule commented 1 month ago

Describe the bug

disabling the widgets isn't working

To Reproduce

Steps to reproduce the behavior:

  1. Go to Tweaks
  2. Toogle off Widgets Button in Task Bar
  3. See error in "## additionnal context"

Additional context

====Chris Titus Tech=====
=====Windows Toolbox=====
Running Script for WPFTweaksRestorePoint
WARNING: The 'Microsoft.PowerShell.Management' module was not imported because the 'Microsoft.PowerShell.Management'
snap-in was already imported.
System Restore Point Created Successfully
Set HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal to 1
=================================
--     Tweaks are Finished    ---
=================================
Enabling Numlock on startup
Disabling Taskbar Widgets
Set-ItemProperty : Attempted to perform an unauthorized operation.
At line:2761 char:9
+         Set-ItemProperty -Path $Path -Name TaskbarDa -Value $value
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (TaskbarDa:String) [Set-ItemProperty], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetItemPropertyCommand

Disabling Search Button
Disabling Taskbar Widgets
Set-ItemProperty : Attempted to perform an unauthorized operation.
At line:2761 char:9
+         Set-ItemProperty -Path $Path -Name TaskbarDa -Value $value
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (TaskbarDa:String) [Set-ItemProperty], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetItemPropertyCommand
menesc commented 1 month ago

There was a issue before, #2862 .Chris has it too on new live stream at 07.10.2024

mind12 commented 1 month ago

This command worked for me: reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f

zmileski commented 1 month ago

2802 about unable to change taskbarda

2769 also

coldReactive commented 1 month ago

Mine is a different line:

Line |
2917 |          Set-ItemProperty -Path $Path -Name TaskbarDa -Value $value
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Attempted to perform an unauthorized operation.

Don't know how to show verbose errors, and the powershell is running as admin: image

zmileski commented 1 month ago

https://github.com/ChrisTitusTech/winutil/issues/2769#issuecomment-2368879286

mpuzelj commented 4 weeks ago

Have same issue on 2 machines:

Running on both machines as administrator. Toggling "Widgets Button in Taskbar" in "Tweaks" menu does nothing, produces an error. 2 different errors depending on the machine.

Older one

image

New clean one

image
zmileski commented 4 weeks ago

as i commented before to fix this in cmd with admin type this "sc config UCPD start=disabled" to disable the service

and this "schtasks /change /Disable /TN "\Microsoft\Windows\AppxDeploymentClient\UCPD velocity"" to disable the task after reboot try again winutil This is due latest update of UserChoice Protection Driver (UCPD) that wont let u change TaskbarDa (widgets)

mpuzelj commented 4 weeks ago

Thank you for the information, did not find you other post.

I can confirm that I am not getting an error anymore after disabling the service and restarting the computer. I cannot confirm that it works. While I am not getting an error anymore, there is also no change. I get the notification in terminal "Enabling Taskbar Widgets" but nothing happens even after about 15 minutes. Same thing on both VM and MW machines (enabling Widgets on HW, disabling Widgets on VM).

I can see Widgets are still disabled in taskbar (on HW machine) for example.

image
zmileski commented 4 weeks ago

Then run this in cmd with admin reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 1 /f

or in gpedit.msc go to Computer Configuration\Administrative Templates\Windows Components\Widgets​ and set "Allow widgets" to Enabled

mpuzelj commented 4 weeks ago

Thank you @zmileski, this works on both computers.