Open in the explorer

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.

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Application Guard FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Microsoft Defender Application Guard
Supported on
Windows 10 Enterprise, Windows 10 Education, or later FR: Windows 10 Entreprise, Windows 10 Éducation ou version ultérieure
ADMX file
AppHVSI.admx
Internal name
AppHVSI/AppHVSI_FileTrustOrigin

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.

French text from Windows 10 1909

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 DWord

Disable

# 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 SilentlyContinue

Options (3)

LabelControlRegistry valueREG typeConstraints / details
Removable mediaMédia amovibleAppHVSI_FileTrustOrigin_RemovableMedia_CheckboxCheck boxbooleanFileTrustOriginRemovableMediaREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Network sharesPartages réseauAppHVSI_FileTrustOrigin_NetworkShares_CheckboxCheck boxbooleanFileTrustOriginNetworkShareREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Files with Mark of the WebFichiers avec Mark of the WebAppHVSI_FileTrustOrigin_MOTW_CheckboxCheck boxbooleanFileTrustOriginMarkOfTheWebREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0

Availability

Windows 11

— 26H2— 25H2— 24H2— 23H2— 22H2— 21H2

Windows 10

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

Windows Server

— 2025— 2022— 2016