Autoriser l'entrée vidéo dans Bac à sable Windows
Allow video input in Windows Sandbox
Explication
Ce paramètre de stratégie active ou désactive l'entrée vidéo dans la Sandbox.
Si vous activez ce paramètre de stratégie, l'entrée vidéo est activée dans Bac à sable Windows.
Si vous désactivez ce paramètre de stratégie, l'entrée vidéo est désactivée dans Bac à sable Windows. Les applications utilisant l'entrée vidéo peuvent ne pas fonctionner correctement dans Bac à sable Windows.
Si vous ne configurez pas ce paramètre de stratégie, l'entrée vidéo sera désactivée. Les applications qui utilisent une entrée vidéo peuvent ne pas fonctionner correctement dans Bac à sable Windows.
Notez que l'exposition de l'entrée vidéo de l'hôte au conteneur peut avoir des conséquences sur la sécurité.
This policy setting enables or disables video input to the Sandbox.
If you enable this policy setting, video input is enabled in Windows Sandbox.
If you disable this policy setting, video input is disabled in Windows Sandbox. Applications using video input may not function properly in Windows Sandbox.
If you do not configure this policy setting, video input will be disabled. Applications that use video input may not function properly in Windows Sandbox.
Note that there may be security implications of exposing host video input to the container.
Registre
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox- Nom de la valeur
AllowVideoInput
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : WindowsSandbox/AllowVideoInput
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowVideoInput' -Value 1 -Type DWordDésactiver
# Désactiver : WindowsSandbox/AllowVideoInput
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowVideoInput' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WindowsSandbox/AllowVideoInput
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox'
Remove-ItemProperty -Path $k -Name 'AllowVideoInput' -ErrorAction SilentlyContinue