📜 VBScript (WSH)
Check "Disable Xbox Game Bar Capture" Status (VBScript)
Reads the registry value behind the "Disable Xbox Game Bar Capture" tweak to confirm whether it's applied.
CheckDisableGameBarStatus.vbs
' ============================================================
' CheckDisableGameBarStatus.vbs
'
' Checks whether "Disable Xbox Game Bar Capture" is currently applied.
'
' Usage: cscript CheckDisableGameBarStatus.vbs
' ============================================================
Option Explicit
Dim objShell, currentValue
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR\AppCaptureEnabled")
If Err.Number <> 0 Then
WScript.Echo "'AppCaptureEnabled' is not set (using the Windows default)."
Else
WScript.Echo "Current value of 'AppCaptureEnabled': " & currentValue
End If
On Error Goto 0