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