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.