' ============================================================
' SetDisableWebSearch.vbs
'
' Disable Start Menu Web Search.
' Stops the Start Menu search from including web results.
'
' Usage: cscript SetDisableWebSearch.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Search\BingSearchEnabled", 0, "REG_DWORD"

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