Enables or disables Windows Game Recording and Broadcasting
Active ou désactive Enregistrement et diffusion de jeux Windows
Explanation
Windows Game Recording and Broadcasting.
This setting enables or disables the Windows Game Recording and Broadcasting features. If you disable this setting, Windows Game Recording will not be allowed.
If the setting is enabled or not configured, then Recording and Broadcasting (streaming) will be allowed.
Enregistrement et diffusion de jeux Windows.
Ce paramètre active ou désactive les fonctionnalités Enregistrement et Diffusion de jeux Windows. Si vous désactivez ce paramètre, l’enregistrement de jeux Windows n’est pas autorisé.
Si vous activez ce paramètre ou ne le configurez pas, l’enregistrement et la diffusion (en continu) ne sont pas autorisés.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\GameDVR- Value name
AllowGameDVR
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: GameDVR/AllowGameDVR
$k = 'HKLM:\Software\Policies\Microsoft\Windows\GameDVR'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowGameDVR' -Value 1 -Type DWordDisable
# Disable: GameDVR/AllowGameDVR
$k = 'HKLM:\Software\Policies\Microsoft\Windows\GameDVR'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowGameDVR' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": GameDVR/AllowGameDVR
$k = 'HKLM:\Software\Policies\Microsoft\Windows\GameDVR'
Remove-ItemProperty -Path $k -Name 'AllowGameDVR' -ErrorAction SilentlyContinue