Skip to content

Instantly share code, notes, and snippets.

@NullDev
Created September 25, 2025 18:26
Show Gist options
  • Select an option

  • Save NullDev/4702b2079ed6d1698a2c6df6401bd3c0 to your computer and use it in GitHub Desktop.

Select an option

Save NullDev/4702b2079ed6d1698a2c6df6401bd3c0 to your computer and use it in GitHub Desktop.
Annoyed by "cannot open this ms-gamebar link" popups after deleting XBox Game Bar?
# If you are like me and uninstalled XBox Game Bar on windows,
# you probably constantly see popups saying "cannot open this ms-gamebar link".
# To get rid of them, open Powershell as Admin,
# And paste those commands one-by-one:
reg add HKCR\ms-gamebar /f /ve /d URL:ms-gamebar 2>&1 >''
reg add HKCR\ms-gamebar /f /v "URL Protocol" /d "" 2>&1 >''
reg add HKCR\ms-gamebar /f /v "NoOpenWith" /d "" 2>&1 >''
reg add HKCR\ms-gamebar\shell\open\command /f /ve /d "\`"$env:SystemRoot\System32\systray.exe\`"" 2>&1 >''
reg add HKCR\ms-gamebarservices /f /ve /d URL:ms-gamebarservices 2>&1 >''
reg add HKCR\ms-gamebarservices /f /v "URL Protocol" /d "" 2>&1 >''
reg add HKCR\ms-gamebarservices /f /v "NoOpenWith" /d "" 2>&1 >''
reg add HKCR\ms-gamebarservices\shell\open\command /f /ve /d "\`"$env:SystemRoot\System32\systray.exe\`"" 2>&1 >''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment