Share via


GPO open jpg file by windows photos app when user logon

Question

Friday, October 4, 2019 2:40 AM

Hi all,

My environment Windows Domain , most of workstations are Windows 10 , just a few are Windows 7.
I want to configure GPO to force open a jpg file after user logon, I can do it with mspaint.exe

User Configuration --> Policies --> Administrative Templates --> System --> Logon --> Run these program at user logon
C:\Windows\System32\mspaint.exe \\fileserver\sharedfolder\myimage.jpg

But I want to use Photos App on Windows 10, I can find Photo App exe at "C:\Program Files\WindowsApps\Microsoft.Windows.Photos_2019.19071.17920.0_x64__8wekyb3d8bbwe\Microsoft.Photos.exe" but I when I try to run it I get error

I can open myimage.jpg with Photos App. How can I use Microsoft.Photos.exe as mspaint.exe ?

All replies (5)

Friday, October 4, 2019 9:07 AM âś…Answered

from a batch file:
"\fileserver\sharedfolder\myimage.jpg"
should be enough to open in default picture editor.

as for your problem with opening in the photos app: shuldn't this be:
"explorer.exe shell:appsFolder\Microsoft.Windows.Photos_2019.19071.17920.0_x64__8wekyb3d8bbwe\Microsoft.Windows.Photos" "\fileserver\sharedfolder\myimage.jpg"


Friday, October 4, 2019 3:47 AM

mrt100_app.dll is associated with Microsoft NET Native Runtime.

Download the related dll file and put in under C:\Windows\System32

S.Sengupta,Microsoft MVP Windows and Devices for IT, Windows Insider MVP


Friday, October 4, 2019 4:58 AM

Thanks for your reply Sengupta,

I have downloaded mrt100_app.dll , sharedlibrary.dll , vcruntime140_app.dll , vccorlib140_app.dll , msvcp140_app.dll (as they also asked these dll file after mrt100_app and sharedlibrary) and put them in under C:\Windows\System32

I still get error


Friday, October 4, 2019 6:13 AM | 1 vote

you should try: Method to open any Windows 10 Apps from command line
so probably (not tested)

"explorer.exe shell:appsFolder\Microsoft.Windows.Photos_2019.19071.17920.0_x64__8wekyb3d8bbwe\Microsoft.Windows.Photos"

But shouldn't you rather start the default program to display photos?
The user can have uninstalled the photos app (its long gone on all my computers),
or choose to use a better app instead. And your forcing to open the picture in one specific app is not user friendly.
AND the Windows 7 computers won't have the photos app, anyway.


Friday, October 4, 2019 7:04 AM

Thank you EckiS,

I can open it with "explorer.exe shell:appsFolder\Microsoft.Windows.Photos_8wekyb3d8bbwe!App"
But I cannot open a shared image like this
explorer.exe shell:appsFolder\Microsoft.Windows.Photos_8wekyb3d8bbwe!App "\fileserver\sharedfolder\myimage.jpg"

I actually find a way to force open a picture (full screen) after user logon, then user can close it.
My boss asks me "Hey, we have an anniversary/special day this month, can you make a notification popup on user PC after logon ..." something like that, you know. (not deploy desktop background wallpaper)

Is there anyway simple to do this ?