How to execute powershell scripts & cmdlet using UiPath ?| Invoke Powershell activity| Part-1

preview_player
Показать описание
In this video, you are going to learn about the Invoke PowerShell activity in UiPath. It helps to integrate Powershell with UiPath to enhance the capabilities. PowerShell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language.
It's really powerful enough to automate administrative tasks.

Please like the video, Comment with your valuable opinions, and share it with your friends. Don't forget to subscribe and enable the notification.

#uipathrpa #powershell #invokepowershell
Рекомендации по теме
Комментарии
Автор

Hi,
My problem is that the exception I'm getting about the type is "Assign: Unable to cast object of type to type 'System.Management.Automation.PSObject'", but the PSAzureContext is not in the list of "referenced assemblies" and there's no way I know of making it show up, so I'm stuck there. The only way I know of getting an output is using the generic Object type, and I can read its contents this way, but I'd need a way to process it in order to get tye property I need in my worflow.
Do you have any idea on how could I make the PSAzureContext type available?

vicentcamarena
Автор

hello, I have tried above method and getting error with item.servicename
Can you suggest?
Error ERROR Validation Property 'System.String ServiceName' is not defined for type (Parameter 'property')
at expression, PropertyInfo property)
at expression, ReadOnlyCollection`1 lambdaParameters, Boolean isLocationExpression, Boolean& abort)
at expression, ReadOnlyCollection`1 lambdaParameters, Boolean isLocationExpression, Boolean& abort)
at environment, Boolean isLocationReference)
at publicAccessor, Boolean isLocationReference)
at expressionText, publicAccessor, Boolean isLocationExpression)
at metadata)
at createEmptyBindings)
at createEmptyBindings)
at createEmptyBindings, IList`1& validationErrors)
at childActivity, ChildActivity& nextActivity, Stack`1& activitiesRemaining, ActivityCallStack parentChain, IList`1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
at currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
at activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
at
at toValidate, ValidationSettings settings)
at reason, CancellationToken cancellationToken) Main.xaml

harshatiwari
join shbcf.ru