Allow files to download and save to the host operating system from Microsoft Defender Application Guard
Autoriser le téléchargement et l'enregistrement des fichiers sur le système d'exploitation hôte à partir de Microsoft Defender Application Guard
Explanation
This policy setting determines whether to save downloaded files to the host operating system from the Microsoft Defender Application Guard container.
If you enable this setting, people can save downloaded files from the Microsoft Defender Application Guard container to the host operating system.
If you disable or don't configure this setting, people can't save downloaded files from the Microsoft Defender Application Guard container to the host operating system.
Ce paramètre de stratégie détermine s’il faut enregistrer des fichiers téléchargés sur le système d’exploitation hôte à partir du conteneur Microsoft Defender Application Guard.
Si vous activez ce paramètre, les personnes peuvent enregistrer les fichiers téléchargés à partir du conteneur Microsoft Defender Application Guard sur le système d’exploitation hôte.
Si vous désactivez ou ne configurez pas ce paramètre, les personnes ne peuvent pas enregistrer les fichiers téléchargés à partir du conteneur Microsoft Defender Application Guard sur système d’exploitation hôte.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppHVSI- Value name
SaveFilesToHost
| 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_SaveFilesToHost
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SaveFilesToHost' -Value 1 -Type DWordDisable
# Disable: apphvsi/AppHVSI_SaveFilesToHost
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SaveFilesToHost' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": apphvsi/AppHVSI_SaveFilesToHost
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
Remove-ItemProperty -Path $k -Name 'SaveFilesToHost' -ErrorAction SilentlyContinue