Ouvrir dans l'explorateur

Autoriser l'entrée vidéo dans Bac à sable Windows

Allow video input in Windows Sandbox

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Bac à sable Windows EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Sandbox
Pris en charge sur
Au moins Windows 11 Professionnel, Enterprise ou Education avec Bac à sable Windows EN : At least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
Fichier ADMX
WindowsSandbox.admx
Nom interne
WindowsSandbox/AllowVideoInput

Explication

Texte français issu de Windows 11 26H2

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
ÉtatValeur é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 DWord

Dé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 DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsSandbox/AllowVideoInput
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Sandbox'
Remove-ItemProperty -Path $k -Name 'AllowVideoInput' -ErrorAction SilentlyContinue

Disponibilité

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server