Allow video input in Windows Sandbox
Autoriser l'entrée vidéo dans Bac à sable Windows
Explanation
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.
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é.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox- Value name
AllowVideoInput
| 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: 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 DWordDisable
# Disable: 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 DWordRevert to "Not configured"
# Revert to "Not configured": WindowsSandbox/AllowVideoInput
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox'
Remove-ItemProperty -Path $k -Name 'AllowVideoInput' -ErrorAction SilentlyContinue