Hello all,
I need to login into virtual machine using RDP. Inside RDP session, robot has to run powershell script as admin. Also, need to open and verify computer management inside RDP session. Can anyone help me on this?
Please be noted that I have added Start-Process powershell -Verb runAs line at the start of the powershell script. In studio, it is opening powershell interface as admin and do nothing.
Hi @Sailaja_Pasupuleti
refer the below thread.
@john.mari
To run PowerShell as an administrator in UiPath, you can use the “Start Process” activity and pass the required arguments to it. Here’s how you can do it:
Add the “Start Process” activity to your UiPath workflow.
In the “FileName” property of the activity, enter “powershell.exe” to start the PowerShell application.
In the “Arguments” property, enter the following command to run PowerShell as an administrator:
-Command "& {Start-Process PowerShell -Verb RunAs}"
This comma…
additional reference: https://www.youtube.com/watch?v=43rS9rr0Jr0
hope it helps!!!
Hi @Sailaja_Pasupuleti
Use the Hot key activity (Win + R) to open the run command of windows
use a type Into activity to type “mstsc” with “Enter” command to open the remote desktop connection app
Or Simple way In Use Application/ Browser activity indicate the RDP login window
Again use a type Into activity to provide the server name
Do a click event to sign in
On Element Appear activity, check whether the pop up to enter username and password is visible
When appears, use a Type into activity to type your credentials
Again a hot key or a click activity to sign in…
Later on you can use the Invoke Powershell activity for your commands.
Hope this helps
Thanks for the steps. Can you please help me on How to run user interactive script.
For example,
Do you wish to continue (y/n).
Based on the input, next steps in the script gets executed.
Thanks for the steps. Will implement them.
system
(system)
Closed
May 10, 2024, 3:24pm
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.