Allow auditing events in Microsoft Defender Application Guard
Permettre les événements d'audit dans Microsoft Defender Application Guard
Explanation
This policy setting allows you to decide whether auditing events can be collected from Microsoft Defender Application Guard.
If you enable this setting, Application Guard inherits auditing policies from your device and logs system events from the Application Guard container to your host.
If you disable or don't configure this setting, event logs aren't collected from your Application Guard container.
Ce paramètre de stratégie vous permet de décider si des événements d'audit peuvent être collectés à partir de Microsoft Defender Application Guard.
Si vous activez ce paramètre, application Guard hérite des stratégies d'audit de votre appareil et consigne les événements système du conteneur Application Guard sur votre hôte.
Si vous désactivez ce paramètre ou ne le configurez pas, les journaux des événements ne sont pas collectés à partir de votre conteneur Application Guard.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppHVSI- Value name
AuditApplicationGuard
| 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_AuditApplicationGuardConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AuditApplicationGuard' -Value 1 -Type DWordDisable
# Disable: apphvsi/AppHVSI_AuditApplicationGuardConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AuditApplicationGuard' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": apphvsi/AppHVSI_AuditApplicationGuardConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
Remove-ItemProperty -Path $k -Name 'AuditApplicationGuard' -ErrorAction SilentlyContinue