需要修改一下注册表,在cmd窗口中运行regedit.exe 调出注册表编辑器,修改Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR 将AppCaptureEnabled的值改为1,如果没有,可以右键新建一个项。
You can modify the GameDVR value in Registry Editor to make sure the Xbox Game Bar component remains enabled to fix your issue. Follow the guide below:
Step 1: Launch Windows Registry Editor by typing regedit to the search box and clicking the result.
Step 2: Go to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR.
Step 3: If you cannot find the AppCaptureEnabled key, right-click on the space and choose New > DROWD (32-bit) Value. Name it as AppCaptureEnabled. Then, double-click on it to set the value data to 1.
Source: https://www.minitool.com/news/windows-11-xbox-game-bar-not-working.html