' ============================================================
' CheckDisableGameBarTipsStatus.vbs
'
' Checks whether "Disable Game Bar Startup Tips" is currently applied.
'
' Usage: cscript CheckDisableGameBarTipsStatus.vbs
' ============================================================

Option Explicit

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

On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\GameBar\ShowStartupPanel")

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