Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • 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 2012
    • 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

February 3, 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 Run Program without Admin Privileges and...

March 24, 2023

Configure Network Settings on Windows with PowerShell: IP...

March 24, 2023

Attaching Host USB Devices to WSL or Hyper-V...

March 20, 2023

Print Screen Key Not Working in Windows

March 17, 2023

Fix: Remote Desktop Services Is Currently Busy

March 15, 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 Run Program without Admin Privileges and Bypass UAC Prompt?

    March 24, 2023
  • Configure Network Settings on Windows with PowerShell: IP Address, DNS, Default Gateway, Static Routes

    March 24, 2023
  • Exchange Offline Address Book Not Updating in Outlook

    March 21, 2023
  • Attaching Host USB Devices to WSL or Hyper-V VM

    March 20, 2023
  • Sending an E-mail to a Microsoft Teams Channel

    March 17, 2023
  • How to Restore Deleted Users in Azure AD (Microsoft 365)?

    March 16, 2023
  • Fix: Remote Desktop Services Is Currently Busy

    March 15, 2023
  • Send-MailMessage: Sending E-mails with PowerShell

    March 14, 2023
  • Clear Cache and Temp Files in User Profiles on Windows (RDS) with PowerShell and GPO

    March 13, 2023
  • Prevent Users from Creating New Groups in Microsoft 365 (Teams/Outlook)

    March 6, 2023

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • 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?
  • Updating List of Trusted Root Certificates in Windows
  • How to Create a Wi-Fi Hotspot on your Windows PC?
  • How to Sign an Unsigned Device Driver in Windows?
Footer Logo

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


Back To Top