' ============================================================
' CheckDisableSuggestedAppsStatus.vbs
'
' Checks whether "Disable Start Menu Suggested Apps" is currently applied.
'
' Usage: cscript CheckDisableSuggestedAppsStatus.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SilentInstalledAppsEnabled")

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