' ============================================================
' SetDisableGameBarTips.vbs
'
' Disable Game Bar Startup Tips.
' Stops the Game Bar from showing its startup tip panel.
'
' Usage: cscript SetDisableGameBarTips.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
objShell.RegWrite "HKCU\Software\Microsoft\GameBar\ShowStartupPanel", 0, "REG_DWORD"

If Err.Number = 0 Then
    WScript.Echo "Disable Game Bar Startup Tips applied."
Else
    WScript.Echo "Failed to apply tweak (Error " & Err.Number & ": " & Err.Description & ")"
End If
On Error Goto 0