web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / CMD Prompt in Admin le...
Power Automate
Unanswered

CMD Prompt in Admin level and Resultant Set of Policy

(0) ShareShare
ReportReport
Posted on by

CMD - Resultant Set of Policy.jpg

I need help with Power Automate Desktop (PAD) and here it is:

 

1. I open CMD prompt on Administrator mode

2. UAC requires Yes or No response. Yes is selected.

3. Execute RSop.msc

4. I have to approximately wait for 45 seconds, depending on the speed of the computer,  for a new dialog message box, "Resultant Set of Policy", to pop-up.

 

I need to use PAD to monitor and catch this pop-up dialog message box and then right click on "User Configuration" to further evaluate the data for a match or etc. 

 

Can someone shed some light on how I can go about doing this? Thank you in advance.

 

 

Categories:
I have the same question (0)
  • wamiq_sattar Profile Picture
    on at

    I have found a work around for the problem, to keep automated:

     

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard