cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jspeer1
Helper II
Helper II

Run Power Automate Desktop as Admin - Help Please?

Hi all, I have a Power Automate Desktop Flow that will, as one of it's steps, run a PowerShell Script.

This PowerShell Script is very simple, it adds an inputted user as a local admin on a remote computer. The script in itself works but when running it with my Flow I always get an Output of Access Denied.

 

If I were to run the PowerShell script in ISE I would need to run ISE as admin. I am a local admin on my PC and I have ISE (all versions) to run as administrator automatically but when ever my Flow runs, I get access denied. 

 

Is there somewhere I can fix this? I've even went as far as disabling UAC (just for testing) and it's still not executing my code.

 

Thanks in advance.

0 REPLIES 0

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 (1,721)