Configure additional sources for untrusted files in Windows Defender Application Guard.
Configurez des sources supplémentaires pour les fichiers non approuvés dans Windows Defender Application Guard.
Explanation
This policy setting allows you to configure additional sources for untrusted files.
If you enable this setting, you must select one or more of the following:
1. Removable media: Files opened or copied from removable media will always open in Windows Defender Application Guard.
2. Network shares: Files opened or copied from network shares will always open in Windows Defender Application Guard. If you want to explicitly trust a network location and prevent files from that location from opening in Application Guard, use one of the Network Isolation policies.
3. Files with Mark of the Web (MotW): Files stamped with MotW will always open in Windows Defender Application Guard.
If you disable or don't configure this setting, only files downloaded from Application Guard for Microsoft Edge will open in Application Guard for Microsoft Word, Excel, or PowerPoint.
Ce paramètre de stratégie vous permet de configurer des sources supplémentaires pour les fichiers non approuvés.
Si vous activez ce paramètre, vous devez sélectionner une ou plusieurs des options suivantes :
1. Média amovible : les fichiers ouverts ou copiés à partir d'un média amovible s'ouvriront toujours dans Windows Defender Application Guard.
2. Partages réseau : les fichiers ouverts ou copiés à partir de partages réseau s'ouvriront toujours dans Windows Defender Application Guard. Si vous voulez approuver explicitement un emplacement réseau et empêcher les fichiers de cet emplacement de s'ouvrir dans application Guard, utilisez l'une des stratégies d'isolation du réseau.
3. Fichiers marqués du Web (MotW) : les fichiers associés à MotW seront toujours ouverts dans Windows Defender application Guard.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, seuls les fichiers téléchargés à partir d'Application Guard pour Microsoft Edge s'ouvrent dans Application Guard pour Microsoft Word, Excel ou PowerPoint.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppHVSI\FileTrustOrigin- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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_FileTrustOrigin
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI\FileTrustOrigin'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Removable media
# unchecked: 0
Set-ItemProperty -Path $k -Name 'FileTrustOriginRemovableMedia' -Value 1 -Type DWord
# Network shares
# unchecked: 0
Set-ItemProperty -Path $k -Name 'FileTrustOriginNetworkShare' -Value 1 -Type DWord
# Files with Mark of the Web
# unchecked: 0
Set-ItemProperty -Path $k -Name 'FileTrustOriginMarkOfTheWeb' -Value 1 -Type DWordDisable
# Disable: AppHVSI/AppHVSI_FileTrustOrigin
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": AppHVSI/AppHVSI_FileTrustOrigin
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI\FileTrustOrigin'
Remove-ItemProperty -Path $k -Name 'FileTrustOriginRemovableMedia' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'FileTrustOriginNetworkShare' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'FileTrustOriginMarkOfTheWeb' -ErrorAction SilentlyContinueOptions (3)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Removable mediaMédia amovibleAppHVSI_FileTrustOrigin_RemovableMedia_Checkbox | Check boxboolean | FileTrustOriginRemovableMedia | REG_DWORD | Default (UI): true Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Network sharesPartages réseauAppHVSI_FileTrustOrigin_NetworkShares_Checkbox | Check boxboolean | FileTrustOriginNetworkShare | REG_DWORD | Default (UI): true Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Files with Mark of the WebFichiers avec Mark of the WebAppHVSI_FileTrustOrigin_MOTW_Checkbox | Check boxboolean | FileTrustOriginMarkOfTheWeb | REG_DWORD | Default (UI): true Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |