I know that in order to run the program you would typically use the following command:
%SystemRoot%\System32\rundll32.exe %ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll, ImageView_Fullscreen %1
But this doesn't seem to work when I put it into the UEM configuration. First of all it won't accept the quotation marks, and even if I remove them it doesn't work.
Did you ever get any further with this, running into the same issue now.
I did actually. On the gold image(s) I used an XML file in conjunction with a local GPO to make sure the Windows Photo Viewer is the default photo viewer.
I did this by first setting the machine's default applications the way I want them to be, then I exported an XML of those settings using this command from the elevated command prompt:
DISM.exe /online /Export-DefaultAppAssociations:C:\DefaultApps.xml
I then took this file and put it somewhere on the gold image (e.g. C:\Customizations).
The next step was to open the local GPO editor on the gold image(s) and got to the Computer Configuration/Administrative Templates/Windows Components/File Explorer/Set a default associations configuration file setting. Enable this setting and point it to the XML file created earlier: (e.g. C:\Customizations\DefaultApps.xml).
These are my notes from when I did it several months ago so hopefully they're sufficient.
Brill, thanks for this. I'll give it a go.
Been playing with SetUserFTA.exe to try and allow users to change this themselves if they don't like Paint but not getting much luck just yet.
In the end I've set a log off task to export the configuration using UEM logoff task;
User Environment --> Logoff Task
cmd.exe /c \\FILESERVER\SetUserFTA\SetUserFTA.exe get > "%LOCALAPPDATA%\Microsoft\Windows\UserFTA.config"
I've experienced and read a few articles pointing to the logon task and the timing of it executing causing issues. To work around this I created a .bat file to import the .config file and stuck a .vbs script in the Start Up folders on my RDSH to call on the .bat so it imports the settings without the user seeing anything onscreen.
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "\\FILESERVER\SetUserFTA\FTA.bat" & Chr(34), 0
Set WshShell = Nothing
I also have these registry settings set as part of my Personalization --> Windows Settings --> Default Apps and FTA configuration
Hopefully this helps someone.