Skip to content

Instantly share code, notes, and snippets.

@sirkkalap
Created March 28, 2021 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirkkalap/73ac2fa92dd4772d2f0ebe7745eadbf9 to your computer and use it in GitHub Desktop.
Save sirkkalap/73ac2fa92dd4772d2f0ebe7745eadbf9 to your computer and use it in GitHub Desktop.
Get-Item -Path HKCU:\Software\Microsoft\GameBar -Verbose|ft -a
If (Test-Path HKCU:\Software\Microsoft\GameBar) {Get-Item HKCU:\Software\Microsoft\GameBar|Set-ItemProperty -Name AllowAutoGameMode -Value 1 -Verbose -Force} #Enable Game Mode
If (Test-Path HKCU:\Software\Microsoft\GameBar) {Get-Item -Path HKCU:\Software\Microsoft\GameBar|Set-ItemProperty -Name AllowAutoGameMode -Value 0 -Verbose -Force}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment