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 / Run PowerShell (admin)...
Power Automate
Answered

Run PowerShell (admin) and execute a command (one-liner)

(0) ShareShare
ReportReport
Posted on by 2

Hi,
I'm new to Power Automate and just want to add my first automation and struggle with that...

What Power Automate should do:

1) Run PowerShell (with admin privilegs)

2) execute the command cup all -y

 

Thanks

 

  • Verified answer
    miketran13 Profile Picture
    720 on at

    Hi,

     

    Please refer to this post I have answered before. Since when running PowerShell as Admin, you can't interact with it via PAD, so that you have to do some workaround steps. 

     

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Run-Desktop-Flow-as-Admin-third-attempt/m-p/805592 

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard