cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vstar19
Helper V
Helper V

Power Automate to run CMD prompt

Hello, 

I am currently working around a solution where by every morning i run a cmd prompt which runs a .exe file. 

I basically open up cmd prompt, run some lines where i enter my username and password. 

I then run a .exe program which refreshes a security group and it then output that security group with the refreshed data into SharePoint. 

 

I would like to automate this process using Power Automate, where it outputs the data to azure blob. 

 

I know how to create a flow on a schedule, but i dont know where or how to start to get Flow to run CMD. 

Do i have to create a special file or can i get the cmd prompt to run as a PowerShell script ?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

You can't do this with just Power Automate, but you should be able to do it with Power Automate Desktop (formerly called UI Flows).  PA Desktop is required to be able to interact with the desktop to run an .exe



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

View solution in original post

ok, thanks for pointing me the right direction. 

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User
Dual Super User

You can't do this with just Power Automate, but you should be able to do it with Power Automate Desktop (formerly called UI Flows).  PA Desktop is required to be able to interact with the desktop to run an .exe



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

ok, thanks for pointing me the right direction. 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,470)