Here I want to automate installing patches in production server using Powershell script, I could able to login RDP using ui automation but couldn’t able to invoke Powershell script in RDP to install and upgrade patches…
Hi!
Is there an error, or does the powershell script not run at all?
Could you take a screenshot of the properties pane of the invoke power shell activity?
Hi @sven.wullum1,
Thanks for the response.
Bot could able to login to RDP(UI Automation) successfully but when I’m Invoking PowerShell Script using(Start Process/Invoke PowerShell Activity), It is getting Invoked in Local Machine, not in the RDP.
Regards,
E Sai Prasad
Hi!
Ok, since it is running on the Local Machine everything will be executed on the Local Machine.
If you want the invoke powershell activity to work on the remote machine you need to be running the process on that machine via orchestrator and setting up a robot etc.
Hi @Eruventi
Why don’t you save the shortcut to your script on your RDP dekstop and run it by clicking on it.
Of course @sven.wullum1 , but the script involves installing upgrades and rebooting the RDP server. If the bot runs on the same server, the reboot will affect the connectivity between the assistant and the robot.
So we want to do this way…
Looks like @muktadir has a good solution.
You could also consider installing UiPath remote runtime on that machine as well to give you better selectors.
Studio - UiPath Remote Runtime
And even if you lose connection due to restart, that will still happen if you do it via RDP.
The main thing you want is to run the script and let it do the rest right?
You could also just run the script via Remote Command:
Running Remote Commands - PowerShell | Microsoft Learn
Hi @sven.wullum1,
By using Remote Runtime we can access the Selectors from RDP for building the Process through Studio by Installing Remote Runtime Installer in both Studio machine and RDP, but will this Process work in Un-Attended mode? How can bot access selectors in RDP
Regards,
E Sai Prasad
Yes it will work as long as the machine you will be running the process can connect to the remote machine via rdp, and the user you’re running it as has the access to do it.
Studio - UiPath Remote Runtime
Read the documentation on how it works.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.