Ouvrir dans l'explorateur

Autoriser l'entrée audio dans Bac à sable Windows

Allow audio 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/AllowAudioInput

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie active ou désactive l'entrée audio vers la Sandbox.

Si vous activez ce paramètre de stratégie, Bac à sable Windows pourra recevoir l'entrée audio de l'utilisateur. Les applications utilisant un microphone peuvent nécessiter ce réglage.

Si vous désactivez ce paramètre de stratégie, Bac à sable Windows ne pourra pas recevoir d'entrée audio de l'utilisateur. Les applications utilisant un microphone peuvent ne pas fonctionner correctement avec ce paramètre.

Si vous ne configurez pas ce paramètre de stratégie, l'entrée audio sera activée.

Notez que l'exposition de l'entrée audio de l'hôte au conteneur peut avoir des implications sur la sécurité.

This policy setting enables or disables audio input to the Sandbox.

If you enable this policy setting, Windows Sandbox will be able to receive audio input from the user. Applications using a microphone may require this setting.

If you disable this policy setting, Windows Sandbox will not be able to receive audio input from the user. Applications using a microphone may not function properly with this setting.

If you do not configure this policy setting, audio input will be enabled.

Note that there may be security implications of exposing host audio input to the container.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox
Nom de la valeur
AllowAudioInput
É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/AllowAudioInput
$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 'AllowAudioInput' -Value 1 -Type DWord

Désactiver

# Désactiver : WindowsSandbox/AllowAudioInput
$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 'AllowAudioInput' -Value 0 -Type DWord

Revenir à « Non configuré »

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

Disponibilité

Windows 10

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

Windows Server