"How can I execute a PowerShell script within a Power Virtual Agent for a workflow that has been created in Power Automate?"

Anonymous
2023-08-23T10:28:15+00:00

Hi All

I have created a Power Automate Desktop flow using a recorder on the server which works as follows:

Open the PowerShell as admin
run a script line and then exit from Powershell.

I am able to record these steps successfully in Power Automate Desktop. It executes successfully when run manually, but when I connect the same flow to the Power Virtual Agent chatbot and try to run the flow only a few steps are performed, that is PowerShell opens in admin mode. Still, the script line won't get typed on the Powershell command prompt.

I have recorded these by opening both Powershell and Power Automate Desktop in Admin mode still, but I cannot solve the issue.

Can anyone help me with the solution?

Thanks In Advance

Microsoft 365 and Office | Install, redeem, activate | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-08-24T01:38:04+00:00

    Dear Swathi Kindre,

    Good day.

    Per the description you have shared, your query is related to our power Automate Team. It will be best if you reach out to them so you can be assisted accurately. Please contact them via Microsoft Power Automate Community - Power Platform Community

    For other concerns, please do not hesitate to add you post in the Microsoft Community Team. Thank you for choosing Microsoft as your partner in business.

    Sincerely,   Eben Ezer Tres | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments