web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to open Windows Ph...
Power Automate
Answered

How to open Windows Photo Viewer

(0) ShareShare
ReportReport
Posted on by 16

Hello,

 

How can I open a file in the windows photo viewer app with Power Automate Desktop?

There's no exe of the app to add to the 'Run application' activity, and trying to run the dll doesn't do anything.

I can fill in the filename in the application path and it will open, but it will also give me the following error: "Can't execute application/open file ..." 

What is the best way to open these types of native apps?

 

Thanks!

 

I have the same question (0)
  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hi @Eveline_RP 

     

    Try these options

     

    Option 1. 

    Windows Photo Viewer is run by dllhost.exe COM Surrogate. Basically, it does not have it's own exe file, only dll.

    To start Windows Photo Viewer from command line you would have to use

    %SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1

     

    where %1 is a full path to a file.

     

    Try making use of the "Run DOS command" or the "Write to CMD session" actions of PAD.

     

    Option 2. 

    If you are ok then set the default file associations of image files on your windows to always open with the Windows Photo Viewer.

    Got to the below screen in Windows

    VJR_0-1635323711460.png

     

    Another way to set the default app is to right click the image file ->  Open With -> Choose Windows photo viewer (make sure to check the default box).

     

    Once done, try launching just the image file and see whether it opens up in the windows photo viewer.

  • Eveline_RP Profile Picture
    16 on at

    Thanks! I used the run powershell script activity with your suggestion, that worked!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard