Overblog
Editer l'article Suivre ce blog Administration + Créer mon blog

[Powershell] [Windows Configuration] How to disable "news and interests" instantly

Publié le par damcuvelier

#Deactivate Windows 10 widget "News and interests" Once and for all:
$ShellFeedsTaskbarViewMode = 2
$IsAnaheimEdgeInstalled = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "IsAnaheimEdgeInstalled").IsAnaheimEdgeInstalled
$osLocale = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "osLocale").osLocale
$IsFeedsAvailable = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "IsFeedsAvailable").IsFeedsAvailable
$HeadlinesOnboardingComplete = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "HeadlinesOnboardingComplete").HeadlinesOnboardingComplete
$CachedMUID = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "CachedMUID").CachedMUID
$DisabledReason = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "DisabledReason").DisabledReason
$EdgeMUID = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "EdgeMUID").EdgeMUID
$IsBackgroundTaskUpdated = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "IsBackgroundTaskUpdated").IsBackgroundTaskUpdated
$FeedsBundleRefreshQueued = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "FeedsBundleRefreshQueued").FeedsBundleRefreshQueued
$FeedsBundleRefreshClearTemporaryWebData = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name "FeedsBundleRefreshClearTemporaryWebData").FeedsBundleRefreshClearTemporaryWebData
$FeedsNextRefreshFeedUrl = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "FeedsNextRefreshFeedUrl").FeedsNextRefreshFeedUrl
$FeedsNextRefreshIntervalMinutes = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "FeedsNextRefreshIntervalMinutes").FeedsNextRefreshIntervalMinutes
$Locale = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "Locale").Locale
$LandingPageUrl = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "LandingPageUrl").LandingPageUrl
$HoverHeight = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "HoverHeight").HoverHeight
$ExpirationDateTime = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "ExpirationDateTime").ExpirationDateTime
$FlyoutUrl = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "FlyoutUrl").FlyoutUrl
$FdHead = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "FdHead").FdHead
$FeedEnabled = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "FeedEnabled").FeedEnabled
$FeedsPrevRefreshIntervalMinutes = (Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name "FeedsPrevRefreshIntervalMinutes").FeedsPrevRefreshIntervalMinutes

New-Item -Path HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion -Name Feeds
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name IsAnaheimEdgeInstalled -Value $IsAnaheimEdgeInstalled -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name osLocale -Value $osLocale
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name IsFeedsAvailable -Value $IsFeedsAvailable -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name HeadlinesOnboardingComplete -Value $HeadlinesOnboardingComplete -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name CachedMUID -Value $CachedMUID
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name DisabledReason -Value $DisabledReason
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name EdgeMUID -Value $EdgeMUID
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name IsBackgroundTaskUpdated -Value $IsBackgroundTaskUpdated -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name FeedsBundleRefreshQueued -Value $FeedsBundleRefreshQueued -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name FeedsBundleRefreshClearTemporaryWebData -Value $FeedsBundleRefreshClearTemporaryWebData -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds -Name ShellFeedsTaskbarViewMode -Value $ShellFeedsTaskbarViewMode -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name FeedsNextRefreshFeedUrl -Value $FeedsNextRefreshFeedUrl
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name FeedsNextRefreshIntervalMinutes -Value $FeedsNextRefreshIntervalMinutes -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name Locale -Value $Locale
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name LandingPageUrl -Value $LandingPageUrl
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name HoverHeight -Value $HoverHeight -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name ExpirationDateTime -Value $ExpirationDateTime
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name FlyoutUrl -Value $FlyoutUrl
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name FdHead -Value $FdHead
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name FeedEnabled -Value $FeedEnabled -Type DWORD
Set-ItemProperty HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Feeds\FeedRepositoryState -Name FeedsPrevRefreshIntervalMinutes -Value $FeedsPrevRefreshIntervalMinutes -Type DWORD

Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds -Name ShellFeedsTaskbarViewMode -Value 2

 

Commenter cet article