Don't allow this PC to be projected to
Ne pas autoriser la projection sur ce PC
Explanation
This policy setting allows you to turn off projection to a PC.
If you turn it on, your PC isn't discoverable and can't be projected to except if the user manually launches the Wireless Display app.
If you turn it off or don't configure it, your PC is discoverable and can be projected to above lock screen only. The user has an option to turn it always on or off except for manual launch, too.
Ce paramètre de stratégie vous permet de désactiver la projection sur un PC.
Si vous activez ce paramètre, votre PC n’est pas détectable ni utilisable pour la projection de contenu, sauf si l’utilisateur lance l’application d’affichage sans fil manuellement.
Si vous désactivez ce paramètre ou ne le configurez pas, votre PC est détectable et peut être utilisé pour la projection de contenu uniquement sur l’écran de verrouillage indiqué ci-dessus. L’utilisateur peut activer ou désactiver systématiquement ce paramètre, sauf en cas de lancement manuel.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Connect- Value name
AllowProjectionToPC
| 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: WirelessDisplay/AllowProjectionToPC
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Connect'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowProjectionToPC' -Value 1 -Type DWordDisable
# Disable: WirelessDisplay/AllowProjectionToPC
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Connect'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowProjectionToPC' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WirelessDisplay/AllowProjectionToPC
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Connect'
Remove-ItemProperty -Path $k -Name 'AllowProjectionToPC' -ErrorAction SilentlyContinue