⚡ PowerShell 5.1+

Disable Activity Feed / Timeline

Disables the Windows Activity Feed / Timeline feature (requires admin). Requires an elevated (Administrator) prompt.

By WindowsScripting.com · 752 B
Set-DisableActivityFeed.ps1
<#
.SYNOPSIS
    Disable Activity Feed / Timeline.

.DESCRIPTION
    Disables the Windows Activity Feed / Timeline feature (requires admin). Requires an elevated (Administrator) prompt.

    Sets HKLM:\SOFTWARE\Policies\Microsoft\Windows\System \ EnableActivityFeed to 0.

.EXAMPLE
    .\Set-DisableActivityFeed.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\System'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'EnableActivityFeed' -Value 0 -PropertyType DWord -Force | Out-Null

Write-Host "Disable Activity Feed / Timeline applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green