PowerShell Script that requires Admin privileges

Hi guys,

I’ve made a PowerShell script to download partifcular files from an STFP however I am trying to automate this process through UiPath. The script I’ve made requires admin privileges to work and has been working fine on the Windows PowerShell ISE. However, before executing on the ISE I had to run:

powershell -ExecutionPolicy ByPass -File sftp2.ps1

On the Administration Windows PowerShell.

What I’m wondering is… Is there an easier way to do this through UiPath? I’ve tried some different ways however I haven’t successful so any help you can provide would be great.

Thanks in advance.

Hi @NewToRPA

Would this solution be applicable here?