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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Powershell Script with...
Power Automate
Answered

Powershell Script with Power Automate

(0) ShareShare
ReportReport
Posted on by 14

Hi guys I'm pretty new to power automate and I'm currently trying to execute a powershell script after the flow run through a few conditions and approvals. 

 

The logic of the flow works, now I want to implement a powershell script which will enable a user and also set a random generated password. The password should then be returned and saved into an variable, which will then be sent to a specific user.

 

The ps-script works when I execute it on the AD-server directly. But now I want it to be executed from the flow itself, without having to store the credentials of the admin user into an remote script.

 

I already thought about using an azuread script, the problem there is, that you also need some sort of credentials and that the sync from azure to the ad-server takes around 30-60 minutes, which is too much. 

 

Would be great if anyone has an idea how to solve it or maybe another approach.

 

Many Thanks

nz

 

 

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey @nz2 

     

    There is no action in cloud flow for cloud flow but you can use Azure Function and invoke it from flow... As for credentials I would recommend you use Azure key vault, you can find details here - https://kamdaryash.wordpress.com/2020/05/29/use-azure-key-vault-to-avoid-passing-credentials-in-power-automate/

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard