Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Disable Built-in PDF Viewer in Microsoft Edge

March 21, 2023 Windows 10Windows 11

Disable Built-in PDF Viewer in Microsoft Edge

The Microsoft Edge browser is used by default to view PDF files on Windows 10 and 11, even if you have another program installed on your computer to open the PDF documents (for example, Adobe Acrobat Reader / DC). Let’s see how to disable the built-in PDF viewer in the Edge browser on Windows 10/11.

The easiest and most reasonable way to change the default program on Windows is to change the association for PDF files so that the external PDF viewer must be opened instead of Edge. For that, open the properties of any *.PDF file and click the Change button in the Open With field. Then change the PDF file association from Microsoft Edge to another program.

PDF file association is hijacked by Edge

You can also use the GPO to change the file associations in Windows.

However, after you install Windows updates or upgrade the Microsoft Edge build, this file association is reset, and Edge becomes the default PDF viewer. If this happens, you need to change the Edge browser associations through the registry:

  1. Open the Registry Editor (regedit.exe) and navigate to HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\
  2. There should be a registry key whose name looks the following way: Microsoft.MicrosoftEdge_buildnumber_neutral__8wekyb3d8bbwe. Where instead of buildnumber there may be different numbers that indicate the current MS Edge build (in my example this is Microsoft.MicrosoftEdge_44.19041.1266.0_neutral__8wekyb3d8bbwe)
    Expand this subkey and navigate to \MicrosoftEdge\Capabilities\FileAssociations ;
  3. There will be several entries under the registry key for file extensions that the Edge browser will open by default;
  4. Copy the value from the .pdf entry (in my example, this is AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723);
    Check current Edge file assotiation for PDF files
  5. Now go to the registry key HKEY_CURRENT_USER\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723
  6. To prevent the Edge browser from opening PDF files, you must create several registry items in this key. Run the following command in the elevated cmd.exe:
    REG ADD "HKEY_CURRENT_USER\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723" /v NoOpenWith /t REG_SZ /f
    REG ADD "HKEY_CURRENT_USER\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723" /v NoStaticDefaultVerb /t REG_SZ /f

Alternatively, it is also possible to rename the AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723 key to something else (I added an underscore to the end of the name). This also worked.
Stop Microsoft Edge from opening PDF files

  1. Now run Edge and paste the following URL into the address bar edge://settings/content/pdfDocuments (Settings -> Cookies and site permissions -> PDF documents);
  2. Then make sure that Always download PDF files option is enabled;
    Edge enable the option Always download PDF files
  3. Now change the association for PDF files to Adobe Reader, as described at the beginning of this article. After that, Edge will stop opening PDF files.

In the GPO Administrative Templates for Microsoft Edge, there is a separate Group Policy option Always open PDF files externally. If you enable this policy, the internal PDF preview that Edge uses will be disabled. Edge will always download PDF files (instead of viewing them) and use the default external PDF viewer in order to open them.

GPO option: Always open PDF files externally

You can also enable this option through the registry:

reg add "HKLM\Software\Policies\Microsoft\Edge" /v "AlwaysOpenPdfExternally" /t REG_DWORD /d "1" /f

MS Edge registry parameter AlwaysOpenPdfExternally

1 comment
2
Facebook Twitter Google + Pinterest
previous post
Join a Windows Computer to an Active Directory Domain
next post
Configure User’s Folder Redirection with Group Policy

Related Reading

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

How to Cancel Windows Update Pending Restart Loop

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

Remove ‘Your License isn’t Genuine’ Banner in MS...

April 21, 2025

1 comment

Max D. December 9, 2023 - 6:38 am

Your article would be more useful if you didn’t use red font on red background for parts of it. Readability.

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Allow Multiple RDP Sessions on Windows 10 and 11
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • How to Run Program without Admin Privileges and Bypass UAC Prompt
  • Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top