' ============================================================
' 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