JieBaef

Disable new Windows Feed

Jun 13th, 2021
685
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds"
  2. $name = "EnableFeeds"
  3. $value = "0"
  4.  
  5. $registryPath2 = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds"
  6. $name2 = "ShellFeedsTaskbarViewMode"
  7. $value2 = "2"
  8.  
  9. if ( -Not ( Test-Path $registryPath ) ) {
  10.     New-Item -Path $registryPath -ItemType RegistryKey -Force
  11. }
  12.  
  13. New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null
  14.  
  15. if ( -Not ( Test-Path $registryPath2 ) ) {
  16.     New-Item -Path $registryPath2 -ItemType RegistryKey -Force
  17. }
  18.  
  19. New-ItemProperty -Path $registryPath2 -Name $name2 -Value $value2 -PropertyType DWORD -Force | Out-Null
RAW Paste Data