I am trying to execute the below powershell command on Windows 10 using Uipath.
The command is working fine with Powershell Application (provided by Windows) but in UIpath (using Uipath invoke powershell activity)the command throws the below error
"An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.UnauthorizedAccessException: Access to the path ‘C:\Users\s112491\Desktop\RK\Powershell Process\BlankProcess3’ is denied.
Kindly find the attached xaml and exception trace and screensho in attachment.
P.S : I am running Uipath and Powershell application in admin mode.
@ovi @hyk @KannanSuresh
Kindly guide further on this!!
What is the version of your activity packages?
Attached the screen shot for all detailed version of activities that are used.Versions%20of%20activities|330x401
Any chance you have some Windows policies or software that could block the application from working properly?
You could also try to update the UiPath.System activity package to a newer version and give it a try.
I have updated all the relevant packages involved to the latest version.
Refer to the image.
Can you elaborate on Windows policies I have admin rights over my machine too.
First of all please mark “Is Script” in attributes pane for Invoke Powershell activity. Secondly as you are using String type of Argument add to your powershell command “| Out-String” so it would look like this:
Get-Content C:\BlankProcess\v1.txt | Out-String