Adjust capture settings on Windows | Xbox Support
Open capture settings. To open Game Bar settings, press the Windows logo key + G, and then select Settings and Capturing. Game Bar has some settings that are also in Windows Settings—changing a setting in either location will affect the setting in the other.