' ============================================================
' CheckDisableStartMenuAdsStatus.vbs
'
' Checks whether "Disable Start Menu App Suggestions" is currently applied.
'
' Usage: cscript CheckDisableStartMenuAdsStatus.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SubscribedContent-338388Enabled")

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