Allow camera and microphone access in Microsoft Defender Application Guard
Autoriser l'accès à la caméra et au micro dans Microsoft Defender Application Guard
Explanation
The policy allows you to determine whether applications inside Microsoft Defender Application Guard can access the device’s camera and microphone when these settings are enabled on the user’s device.
If you enable this policy, applications inside Microsoft Defender Application Guard will be able to access the camera and microphone on the user’s device.
If you disable or don't configure this policy, applications inside Microsoft Defender Application Guard will be unable to access the camera and microphone on the user’s device.
Important: If you turn on this policy, a compromised container could bypass camera and microphone permissions and access the camera and microphone without the user’s knowledge. To prevent unauthorized access, we recommend that camera and microphone privacy settings be turned off on the user’s device when they are not needed.
La stratégie vous permet de déterminer si les applications à l'intérieur de Microsoft Defender Application Guard peuvent accéder à la caméra et au microphone de l'appareil lorsque ces paramètres sont activés sur l'appareil de l'utilisateur.
Si vous activez ce paramètre de stratégie, les applications dans Microsoft Defender Application Guard peuvent accéder à la caméra et au microphone sur l'appareil de l'utilisateur.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les applications dans Microsoft Defender Application Guard ne pourront pas accéder à la caméra et au micro sur l'appareil de l'utilisateur.
Important : si vous activez cette stratégie, un conteneur compromis pourrait ignorer les autorisations de caméra et de microphone, et accéder à la caméra et au microphone sans que l'utilisateur ne le sache. Pour empêcher tout accès non autorisé, nous recommandons de désactiver les paramètres de confidentialité de la caméra et du microphone sur l'appareil de l'utilisateur lorsqu'ils ne sont pas indispensables.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppHVSI- Value name
AllowCameraMicrophoneRedirection
| 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: apphvsi/AppHVSI_AllowCameraMicrophoneRedirectionConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowCameraMicrophoneRedirection' -Value 1 -Type DWordDisable
# Disable: apphvsi/AppHVSI_AllowCameraMicrophoneRedirectionConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowCameraMicrophoneRedirection' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": apphvsi/AppHVSI_AllowCameraMicrophoneRedirectionConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
Remove-ItemProperty -Path $k -Name 'AllowCameraMicrophoneRedirection' -ErrorAction SilentlyContinue