Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Assistance Required: Executing PowerShell Script via Appian Robotic Task

Certified Senior Developer

Hi All,

We are currently facing a technical challenge while trying to execute a PowerShell script (.ps1 file) on a robot's virtual machine using Appian robotic task. The script is stored in a shared drive location that the robotic task has access to.

Our goal is to run the script using the “Run with PowerShell” option. However, we are unable to identify any built-in robotic action within Appian RPA that allows us to execute a PowerShell script directly on the robot’s VM.

If you are aware of any solution, workaround, or best practice to achieve this, your guidance would be greatly appreciated.

Thank you in advance for your support.

  Discussion posts and replies are publicly visible

  • Hi  

    Currently, the recommended workaround for this type of execution is to run the command using the Windows "Run" dialog. This can be implemented with a three-action subtask:

    1. Press keyboard shortcuts: Win + R (to open the Run dialog)


     
    2. Type Text: Type the full command, including any parameters, in this case it could be "powershell -ExecutionPolicy Bypass -File "C:\myFolder\script.ps1"
     
    3. Press keyboard shortcuts: Enter