' ============================================================
' SetDisableStartMenuAds.vbs
'
' Disable Start Menu App Suggestions.
' Turns off sponsored app suggestions in the Start menu.
'
' Usage: cscript SetDisableStartMenuAds.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SubscribedContent-338388Enabled", 0, "REG_DWORD"

If Err.Number = 0 Then
    WScript.Echo "Disable Start Menu App Suggestions applied."
Else
    WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0