Заметки сисадмина » Set default PDF reader with GPO depending on whether acrobat is installed.

Заметки сисадмина о интересных вещах из мира IT, инструкции и рецензии. Настраиваем Компьютеры/Сервера/1С/SIP-телефонию в Москве

Set default PDF reader with GPO depending on whether acrobat is installed.

2020-02-18 · Posted in Active Directory

Here’s how to set a default pdf reader (tested with Win 10) depending on whether acrobat is installed.

Create two xml files

Create two xml files and add them to an accessible network share with read only permissions for the user/computers you wish to apply this for.

XML File to set PDF reader as acrobat and chrome as default browser

XML File to set chrome as the default browser and pdf reader

Copy Files To Local Computer

Create a GPO and under: ‘computer configuration -> Preferences -> Windows Settings -> Files
Create two files that are set to update. One file will have the source set to the acrobat xml file, and the other will have the source set to the chrome xml file. The XML file has the file to program association information set in it. Both should have the same target file which should be set to a local location on the computer which will be receiving this policy. On the next step, we decide which file actually gets copied.

Check item level targeting

Go to the common tab and check the item level targeting checkbox and click the targeting button

Set the first item level targeting filter for if acrobat is installed

For the file that has acrobat set as the default, add the condition to check if our program is installed, in this case, we check for the install folder. When you add this, click ok on the prompts and move to the next file.

Set the second item level targeting

For the file that has chrome as the default, add the same condition as you did on the previous step, but invert it . (You can click on the item options button to get not statements) Click ok on this.

Tell windows to use our xml file

Next, edit the preference item at
Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> File Explorer -> Set a Default Associations Configuration File
Set the default configuration file to the path of the file that you created earlier.

Congratulations, you’re done. Be sure to test the GPO to make sure it works well.

Leave a Reply