ChrisTitusTech / winutil

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

ShellFeedsTaskbarViewMode cannot be set with Explorer.Exe running #2733

Open Jvella94 opened 2 months ago

Jvella94 commented 2 months ago

Describe the bug

When running the "Disable Telemetry" Tweak, I get the below error:

Set HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\ShellFeedsTaskbarViewMode to 2
WARNING: Unable to set ShellFeedsTaskbarViewMode due to unhandled exception
WARNING:    at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)
   at Microsoft.PowerShell.Commands.RegistryProvider.SetRegistryValue(IRegistryWrapper key, String propertyName, Object value, RegistryValueKind kind, String path, Boolean writeResult)
   at Microsoft.PowerShell.Commands.RegistryProvider.SetProperty(String path, PSObject propertyValue)

I confirmed this by manually trying to do myself in regedit and not being allowed.

Searching led me to a Reddit Post with the solution below:

# Turn off News and Interests
Write-Host "Turning off News and Interests..."
TASKKILL /IM explorer.exe /F
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 2
Start-Process explorer.exe

A follow up comment also recommended to disable/create two other registry entries:

Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds" -Name "IsFeedsAvailable" -Type DWord -Value 0
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" -Name "EnableFeeds" -Type DWord -Value 0  

To Reproduce

Steps to reproduce the behavior:

  1. Run tool -> Tweaks Tab -> Check Disable Telemetry under Essential Tweaks -> Click Run Tweaks
  2. Console will show Error Message Listed as above

Expected behavior

Registry tweaks are set correctly (a warning should come up for this option as restarting explorer.exe will remove peoples open folders etc)

Screenshots

N/A

Additional context

OS Name Microsoft Windows 11 Pro Version 10.0.22631 Build 22631

kydex commented 2 months ago

I've got the same error

furquim87 commented 1 month ago

Same error here. I tried to use the solutions recommended by the OP, but it also didn't work.

EDIT: Managed to fix it by disabling UCPD and reapplying the tweaks. Thanks to #2802 (comment) and #2769 (comment) for pointing me in that direction.