Adjust capture settings on Windows | Xbox Support In Game Bar settings, you can enable game captures by selecting the Record in the background while I’m playing a game checkbox This setting can also be changed in Windows Settings > Gaming > Captures
Troubleshoot Game Bar on Windows | Xbox Support Go to Gaming > Game bar, then turn on Record game clips, screenshots, and broadcast using Game bar When playing a game, press the Windows logo key + G to open Game Bar