Configure File Associations

By default, Windows 10 uses Microsoft Edge to open every PDF files and HTTP links.
For this post, we will redirect PDF files to Adobe Reader and HTTP/HTTPS to Internet Explorer.
You can redirect any extension to any software. You just need to make sure that the application that you associate is installed during your Windows 10 deployment (or in your image).

The first step is to make the association manually, we will then export the configuration to a XML file and we will use DISM in our task sequence to import the configuration.

Log on a Windows 10 machine
Open Control Panel / Programs / Default Programs / Set Associations

Navigate to .PDF and click on Change Program

Select Adobe Reader and click OK

Your .PDF files are now associated to Adobe Reader
For Internet Explorer association, select HTTP Protocol, .HTM and .HTML files, change program to Internet Explorer
Now that our associations has been done, we need to export the associations to a XML file using DISM :

Open an elevated command prompt
Run the following command : Dism /Online /Export-DefaultAppAssociations:C:\Temp\SCDAppAssoc.xml
(Change the XML file name and path if desired but make sure that the directory exists or you’ll get an error code 3)

The XML file can be opened using any text editor. You can see our modifications has been made. It’s possible to change manually in this file but it’s a bit tricky to find ProdId and ApplicationName.

Copy the XML file to your Windows 10 customization package in the FileAssociations Folder

Open the SCCM Console and browse to Packages
Right-click your Windows 10 Customization package and select Update Distribution Point

Go to Software Library \ Operating Systems \ Task Sequences
Right-click and Edit your Windows 10 task sequence
Select Add / General / Run Command Line
Name : Set File Association
Command line : Dism.exe /online /Import-DefaultAppAssociations:FileAssociations\SCDAppAssoc.xml
Check the Package box and specify your Windows 10 customization package
Position this step after the Windows image has been deployed



Thanks to this article: https://www.systemcenterdudes.com/sccm-windows-10-customization

Geef een reactie

Het e-mailadres wordt niet gepubliceerd.

Deze website gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.