Powershell with Uipath

Hi i am trying to run power shell script in uipath, so far i have not succeeded, can any one help .

I am attaching the workflow here
Powershell.xaml (3.0 KB)

Please go through it i have attached Two sequences
Help Appreciated
Thanks
Kalyni

Hai @kalyani,

There is no activity on your workflow.,

Regards,
D.Aravind

Sorry

I attached AgainPowershell.xaml (10.7 KB)

Mainly i want to open the folders and find security permissions for that folder.
Please see

@kalyani,

kindly share me the .ps1 file

Regards,
D.Aravind

Hi , i attached as Zip, because it is not taking the .ps1

i created that just for test purpose,
If you are intersted you can use any file:smiley:

Thanks for Immediate reply

sureUntitled1.zip (148 Bytes)

@kalyani,

I unable to run PowerShell script on my pc, however, I rectified the uipath error kindly check it.,

Powershell.xaml (10.7 KB)

Regards,
D.Aravind.

Thanks for the help

but it is not working giving System.InvalidCastException

@kalyani,

Kindly Share me the Screen Shot of the Error,

Regards,
D.Aravind

Hi
please see the Image

Thanks
kalyani

@kalyani,

Kindly change the output variable to resultoutput in “Run power shell script”

Regards,
D.Aravind.

Hi
still it is giving same error

Thanks
kalyani

@kalyani change variable type from Collection “PSObject” to Collection “String”