en-US edge computer user

View XFA-based PDF files using IE Mode for allowed file hash.

Verified with Microsoft Edge 152.0.4191.53 — updated on July 10, 2026

Microsoft Edge 152.0.4191.53

Supported on: Microsoft Edge version 132, Windows 7 or later

Path in the GPO console

Computer Configuration\Administrative Templates\Microsoft Edge\PDF Reader

Description

XFA is a legacy technology that's deprecated by its original creators. It's not an ISO standard and as such, it doesn't align with the modern web architecture. Continued use poses potential risks and vulnerabilities. For more information, see 'ViewXFAPDFInIEModeAllowedOrigins' (View XFA-based PDF files using IE Mode for allowed file origin.). If you enable this policy, you can configure the list of base64 encoded SHA256 file hashes for which XFA PDF files automatically open in Microsoft Edge using IE Mode. If you disable or don't configure this policy, XFA PDFs won't be considered for opening via IE mode except the files from file origin mentioned in Policy 'ViewXFAPDFInIEModeAllowedOrigins' For more information, see - [Get-FileHash](https://go.microsoft.com/fwlink/?linkid=2294823), [Dot Net Convert API](https://go.microsoft.com/fwlink/?linkid=2294913). Example value: pZGm1Av0IEBKARczz7exkNYsZb8LzaMrV7J32a2fFG4= nFeL0Q+9HX7WFI3RsmSDFTlUtrbclXH67MTdXDwWuu4=

Registry

HKLM Software\Policies\Microsoft\Edge
HKCU Software\Policies\Microsoft\Edge

More options available

Options

View XFA-based PDF files using IE Mode for allowed file hash.
List (registry values) list
- list under Software\Policies\Microsoft\Edge\ViewXFAPDFInIEModeAllowedFileHash

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: View XFA-based PDF files using IE Mode for allowed file hash.
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: Microsoft Edge version 132, Windows 7 or later

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\ViewXFAPDFInIEModeAllowedFileHash]
; List values: enter one value per line in the builder UI.
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: View XFA-based PDF files using IE Mode for allowed file hash.
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: Microsoft Edge version 132, Windows 7 or later

$path = 'HKLM:\Software\Policies\Microsoft\Edge\ViewXFAPDFInIEModeAllowedFileHash'
New-Item -Path $path -Force | Out-Null
# List values: enter one value per line in the builder UI.

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview