⚡ PowerShell 5.1+
Check "Disable Xbox Game Bar Capture" Status
Reads the current registry value behind the "Disable Xbox Game Bar Capture" tweak so you can confirm whether it's applied.
Test-DisableGameBarStatus.ps1
<#
.SYNOPSIS
Checks whether "Disable Xbox Game Bar Capture" is currently applied.
.DESCRIPTION
Reads HKCU:\Software\Microsoft\Windows\CurrentVersion\GameDVR \ AppCaptureEnabled and reports its current value,
or reports that it isn't set (falling back to the Windows default).
.EXAMPLE
.\Test-DisableGameBarStatus.ps1
#>
[CmdletBinding()]
param()
$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\GameDVR'
$value = Get-ItemProperty -Path $regPath -Name 'AppCaptureEnabled' -ErrorAction SilentlyContinue
if ($null -eq $value) {
Write-Host "'AppCaptureEnabled' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
Write-Host "Current value of 'AppCaptureEnabled': $($value.'AppCaptureEnabled')" -ForegroundColor Green
}