cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jagg
New Member

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

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
miketran13
Solution Specialist
Solution Specialist

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... 

 

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

View solution in original post

1 REPLY 1
miketran13
Solution Specialist
Solution Specialist

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... 

 

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

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,088)