2

I really need to disable the Xbox Game Bar with PowerShell. There are many articles on how to delete/uninstall the Xbox Game Bar but that does not work for me as I need this inside Windows Sandbox (where uninstalling it is impossible).

The reason for this is that the Game Bar keeps throwing an error You'll need a new app to open this ms-gamingoverlay link whenever certain apps are opened, and as Windows Sandbox is pristine each time it is opened, I will get this error over and over until I can disable it somehow.

Hence, I would really appreciate a way to disable this via PowerShell so that I can put that into my Startup script.

YorSubs
  • 1,087

1 Answers1

2

These are the two powershell commands that disable Gamebar via the registry in powershell in Windows 10:

Set-ItemProperty -Path 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR' -Name 'AppCaptureEnabled' -Value 0
Set-ItemProperty -Path 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR' -Name 'HistoricalCaptureEnabled' -Value 0

I cannot be sure if the folder structure is the same within Windows Sandbox though.

Here is my source of information.

Mastaxx
  • 1,379