Stop Edge Hijacking PDF Files

KB ID 0001395

Problem

This question appeared in my inbox today, ‘Edge’ has a nasty habit of assigning itself the default PDF reader, particularly after a round of updates!

Solution

First I went and had a look at my old Experts Exchange Buddy Ramesh’s site (www.winhelponline.com) who had done the heavy lifting and worked out the registry keys;

Note: I’m only concerned with .pdf files, if you want to block .htm and/or .html files, then just repeat this process using the the REG_SZ values from above;

The solution for a single machine is to create the following two registry string values;

HKEY_CURRENT_USER\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723
REG_SZ Name = NoOpenWith
REG_SZ Name = NoStaticDefaultVerb

Then set the correct file associate like so;

Which is fine for one machine but what if you have hundreds of complaining users! Then we need to employ some Group Policies. But there’s a few hoops to jump though first. On your client machine, the one you have just tested the procedure on, export your file association to an XML file. Open an administrative command window, and execute the following command;

[box]

Dism /Online /Export-DefaultAppAssociations:C:\Windows\Temp\DefaultApps.xml

[/box]

If you take a look at the a file you will see, (providing you did it right) the Adobe/PDF file association.

Now copy the file to a location all your domain clients can see, in my case I’m going to drop it in the sysvol directory.

Crete a new Group Policy linked to the computers you want to apply the change to, then edit it.

Navigate to;

[box]Computer Configuration > Policies> Administrative Templates > Windows Components > File Explorer > Set default associations configuration file  >Enable > Put in the path to your .XML file[/box]

Save and exit the, group policy, now create a SECOND POLICY linked to your USERS.

Navigate to;

[box]User Configuration > Preferences > Windows Settings > Registry > New > Registry Item[/box]

Note: Ive already created the registry values on the machine I’m configuring the policy on, (you can export the key and import it on a domain controller to make things easier for you). Close and exit the policy editor.

Then wait, or Force Group Policy.

Related Articles, References, Credits, or External Links

NA

MAC OSX – Setting File Associations

KB ID 0001046

Problem

This started out as an article on simply ‘how to set file associations’ but when I tried to associate .jpg files with Photoshop it refused to work, (they stayed associated with the MAC Preview application).

Solution

1. Right click a file of the type you want to associate, (or cmd click if you don’t have right click enabled).

2. With the right click menu still on the screen press and hold the ‘options’ key. If like me your new to MAC that’s the key indicated below. At this point ‘Opens With’ changes to ‘Always Opens With’. Select the application that will be the new default application for that file type.

Unable to Associate a File Type / File Extension with Photoshop

This worked for me;

1. Right click (or cmd click) the file in question > Get Info.

4. Locate the ‘Opens with’ section and change it to the desired app (in this case Photoshop) > Change All.

5. Continue.

Related Articles, References, Credits, or External Links

NA