Stop Microsoft complaining about ms-overlay

To stop Microsoft Windows (11) from the annoying ms-overlay popup if you don’t want the gaming overlay bar by Microsoft and deinstalled it, execute from elevated Powershell:

reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR /f /t REG_DWORD /v "AppCaptureEnabled" /d 0
reg add HKEY_CURRENT_USER\System\GameConfigStore /f /t REG_DWORD /v "GameDVR_Enabled" /d 0

This should do the trick.