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 / Flow to run a powershe...
Power Automate
Unanswered

Flow to run a powershell in On Premise

(0) ShareShare
ReportReport
Posted on by

Hi all,
I am trying to create a flow that allows me to execute a script in On Premise machine. Certain parameters of the scripts are provided in a mail which activates the flow. The script could be hosted in azure (azure automation). Do I need a gateway to connect it or how can I solve it?
Thanks in advance.
Best regards

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @Anonymous  in my experience you can't do this becouse there are no onpremise sharepoint conector sorry

  • Community Power Platform Member Profile Picture
    on at

    Thank you for your reply Christian.

     

    As I can see. with Hybrid Runbook Worker https://docs.microsoft.com/es-es/azure/automation/automation-hybrid-runbook-worker

    could be possible. It creates a connection between Azure Automation and on premise machine.

     

    I'll keep investigating.

     

    Thanks!

  • VictorIvanidze Profile Picture
    13,073 on at

    Hi @Anonymous, 

    It seems to me you are going to use extremely complicated way.

    I'd create a so called Exchange transport agent that will implement your functionality. 

    Regards,

    Victor

  • Community Power Platform Member Profile Picture
    on at

    Hi Victor,

    I don't know what you mean, how could I implement it?

    Thanks. 

  • VictorIvanidze Profile Picture
    13,073 on at

    Transport agent code samples for Exchange 2013

  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    @Anonymous  shure but it depends on what you are going to do, for example if you want yo get some result from app that is on your vm you can use vpn site to site to conect your runnbooks or you can expose a an API to use it in Power Automate and conect to your runnboks to. 

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard