Setting Windows Photo Viewer as Default App on Windows 10 during OSD with ConfigMgr

Starting with Windows 10, Microsoft included an App called ‘Microsoft Photos’, which is the Default Viewer for the most common Image file types (jpg, png, bmp, etc.). I recently discovered that the traditional ‘Windows Photo Viewer’ is still present in Windows 10 and in fact, is still the Default Viewer for .tif and .tiff file types.

In this blog post, we will set Windows Photo Viewer as Default Viewer for all common Image file types. This may be necessary if you’re thinking about removing the Microsoft Photos App in your Windows 10 Image.

Composing the Package

First, you need a Windows 10 Reference Machine to generate some Data for the Package.

For this to work, we first need to create the Associations in the Windows Registry. Without those Associations, you are unable to select the Windows Photo Viewer in the Settings App, as seen below.

When removing Microsoft Photos, the User has by default no other choice than to use Paint to open Images.

Copy the below Registry Export, save it as ‘WindowsPhotoViewerAppAssocations.reg’ and run it on the Reference Machine.

As soon as the above Registry Settings have been added, you should be able to select the Windows Photo Viewer on your Reference Machine.

Set the Windows Photo Viewer as Default App for Photos on your Reference Machine.

Run the below Script to export the Default App Associations. Make sure that the Folder Structure (C:\Temp) exists, before running the command

Save the exported XML file to the same path, were you stored the Registry (.reg) file.

Creating the Package in ConfigMgr

Copy both files to a path, which is accessible by ConfigMgr.

Create a new Package, which points to the above Files.

Do not create a program for this Package and complete the Wizard.

Distribute the created Package to your Distribution Point (Groups).

Modifying the Task Sequence

Open your Windows 10 Task Sequence and create a new “Run Command Line” Step somewhere after the “Setup Windows and Configuration Manager”.

Specify the following Command line:

Enable the “Disable 64-bit file system redirection” Checkbox and specify the created Package via Browse.

Add another “Run Command line” Step right below the previously created Step.

Specify the following Command line:

Enable the “Disable 64-bit file system redirection” checkbox and specify the created Package via Browse.

Result

When launching the modified Task Sequence, you should now end up with the ‘Windows Photo Viewer’ as default Application for Images.

Notes: The above Registry Export is based on the following blog post. Restoring “Windows Photo Viewer” as Default in Windows 10

Setting Windows Photo Viewer as Default App on Windows 10 during OSD with ConfigMgr
Rate this post

One Response

  1. wheeler 4. August 2017

Leave a Reply