📜 VBScript (WSH)

Check "Disable Activity Feed / Timeline" Status (VBScript)

Reads the registry value behind the "Disable Activity Feed / Timeline" tweak to confirm whether it's applied.

By WindowsScripting.com · 713 B
CheckDisableActivityFeedStatus.vbs
' ============================================================
' CheckDisableActivityFeedStatus.vbs
'
' Checks whether "Disable Activity Feed / Timeline" is currently applied.
'
' Usage: cscript CheckDisableActivityFeedStatus.vbs
' ============================================================

Option Explicit

Dim objShell, currentValue
Set objShell = CreateObject("WScript.Shell")

On Error Resume Next
currentValue = objShell.RegRead("HKLM\SOFTWARE\Policies\Microsoft\Windows\System\EnableActivityFeed")

If Err.Number <> 0 Then
    WScript.Echo "'EnableActivityFeed' is not set (using the Windows default)."
Else
    WScript.Echo "Current value of 'EnableActivityFeed': " & currentValue
End If
On Error Goto 0