Windows Registry Editor Version 5.00

; Disable Xbox Game Bar Capture
; Disables background game/app capture via the Xbox Game Bar.
;
; Usage: double-click to apply, then sign out and back in (or restart
; explorer.exe) for it to take full effect. Back up your registry first
; if you're unsure (File > Export in Registry Editor).

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR]
"AppCaptureEnabled"=dword:00000000