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 / Is it possible to auto...
Power Automate
Unanswered

Is it possible to automate UAC(User Account Control) Dialog?

(0) ShareShare
ReportReport
Posted on by 13

https___qiita-image-store.s3.ap-northeast-1.amazonaws.com_0_126131_7882aee2-1454-472f-20cb-e414c1736ae5.png Is it possible to click Yes by PAD on this kind of dialog?

 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Send Keys {Tab}{Enter}

  • ramd21 Profile Picture
    13 on at

    I have already tried {Left}{Return}

    But did not work.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Try focusing the window first. Get to this point, stop the flow, add a focus window action, select by title, and click select window, a red box should appear and control + left click to add the element. 

    then tab enter should work. 

  • ramd21 Profile Picture
    13 on at

    I guess it is not possible to click UAC dialog by PAD for security reason.

    But I found a solution to execute without UAC.

    https://www.winhelponline.com/blog/run-programs-elevated-without-getting-the-uac-prompt/

     

  • ramd21 Profile Picture
    13 on at

    I tried that way too. But UAC dialog can not be selected as red boxed.

  • ramd21 Profile Picture
    13 on at

    Thank you for reply anyway.🙂

  • ramd21 Profile Picture
    13 on at
  • wamiq_sattar Profile Picture
    on at

    I found something important, you probably know it already.
    The issue I was facing was to execute "GPRESULT /Z" via the
    PAD. Windows UAC required me to physically respond the YES
    query button for the Administrator level/rights. Which was basically
    defeating my purpose of automation (fire and forget). So, I
    decided to look at Powershell script, invoked from PAD. In
    Powershell. I executed the following
    "Start-Process PowerShell -Verb RunAs -Yes"
    and it dumped the data in the associated/designated area.
    The "- Yes" on the command line will automatically respond
    with YES to Windows UAC requirement for the Administrator
    rights (YES/NO). And I did not have to do anything else,
    after starting the execution of the PAD/test from
    "Power Automate > My flows." The call to "Run PowerShell script"
    from the PAD with the command of
    "Start-Process PowerShell -Verb RunAs -Yes", and one more
    "Run PowerShell script" with the command of "GPRESULT /Z",
    gave me every thing that I needed from RSoP's "Resultant Set
    of Policy". After this the "Terminate process" for "Powershell" was

    executed to free the PAD.

    Please feel free to share this with any user of PAD.


    Best Regards,

    Wamiq Sattar

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
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard