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 application as admin
Power Automate
Unanswered

Run application as admin

(0) ShareShare
ReportReport
Posted on by 204

Hi Guys,

 

Anyone know how to run a application from powerautomate desktop with admin rights.

 

Currently when i launch the software manually it prompts users to run as admin.

 

When running application from powerautomate desktop it doesnt run it as admin therefore program doesnt work.

 

Any help is greatly appreciated.

 

Thanks

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @christian12 

     

    Could you try running this powershell script using Run Powershell script action, Then u can open the application 

    Pass path of application, adminusername, adminpassword in the respective variables as shown below 🙂

     

    $applicationPath = "C:\Program Files\MyApp.exe"
    $username = "Administrator"
    $password = "password" | ConvertTo-SecureString -AsPlainText -Force
    $credential = New-Object System.Management.Automation.PSCredential($username, $password)

    Start-Process -FilePath $applicationPath -Credential $credential -Verb runAs

     

     

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    @christian12 Note that you will need to run PAD with elevated permissions too. Otherwise, you will not be able to control the elevated app.

  • davidptm56 Profile Picture
    4 on at

    Hello @christian12 ,

     

    In case it helps,

    What I've done to run apps with elevated rights from an unelevated and unattended PAD(interaction with UAC is not an option, but I don't wanna disable it) is:

     

    1. Create a .bat file that calls the application I want to run.
    2. In my Desktop Flow add the step:  Run application 'C:\Windows\System32\cmd.exe' with arguments '/K "runas /noprofile /user:{myAdminUserName} {c:\...path to the bat file created in #1\batfile.bat}" && exit'. This invokes my bat file in a new cmd window with the window title 'C:\Windows\System32\cmd.exe - runas /noprofile /user:{myAdminUserName} {c:\...path to the bat file created in #1\batfile.bat}'. This is important to correctly identify the right cmd window in next step and don't accidentally leak admin password.
    3. Add step: Send Keys.
      1. Chose target for the sent keys by title or class.
      2. Window Title: see point #2.
      3. Window Class: 'ConsoleWindowClass'.
      4. Text to send:  encrypted text direct input. Insert your admin's password here. It'd be unreadable by any user after you save this step.
      5. I always chose send keys as hardware with delay between inputs = 1
    4. Add step: Send Keys.
      1. Target same windows as in step #3
      2. Text to send: '{return}'
    5. That's it. Add waits after if you need them before your flow continues.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard