Check Game Bar and Game Mode are enabled

Open tweaks -> Gaming -> Game bar.

Here, it’s crucial that you enter1in the text box if its set to 0.

Finally, save and restart Windows PC and check on the next login everything working smoothly.

You will be able to do it via prefs > Apps> Xbox > Advanced prefs> Reset.

hit Windows Key + S, then typePowershellinto the search box.

Right-hit the program once it appears, and open it as an Administrator.

To get it back, launch the Microsoft Store, search for it, then download and install.