Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 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

0 comment
0
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

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Leave a Comment Cancel Reply

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

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

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
  • Fixing ‘The Network Path Was Not Found’ 0x80070035 Error Code on Windows
Footer Logo

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


Back To Top