Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.7k stars 1.08k forks source link

Game Mode #205

Closed AnubisMann closed 5 years ago

AnubisMann commented 5 years ago

Hi

I request to add a line in the script to deactivate the game mode.

Thanks.

Disassembler0 commented 5 years ago

That should be already covered by DisableXboxFeatures tweak.

AnubisMann commented 5 years ago

That should be already covered by DisableXboxFeatures tweak.

It does not work that way. In Windows 10 1809 for more than disable Xbox with the script ...... in the Windows settings> Games> Game mode is still activated and you have to press the button to deactivate it. A line in the script is required so that the game mode appears disabled in the Windows settings. In version 1809 they modified those options and you will see them in a different way.

Disassembler0 commented 5 years ago

Ah. Nice. I wasn't aware that it can be disabled from 1809 onwards. This does the trick:

Set-ItemProperty -Path "HKCU:\Software\Microsoft\GameBar" -Name "AutoGameModeEnabled" -Type DWord -Value 0

Unfortunately it needs to be applied on per-user basis as there is no GPO for this. I'm not even surprised.

I'll add it to DisableXboxFeatures shortly.