How to work in RDP session without opening RDP session

I want to run a powershell script in a RDP machine that will create a user there but I am unable to do it. I dont want to login to machine because the workflow should run on my local machine. Is it possible?

1 Like

welcome to UiPath community
hope this would help you

Cheers @rameezimtiaz

I tried this. this works when running powershell on local machine. I want to run xaml file on my local machine but powershell should run on RDP. I tried using Active Directory Scope activity to login but its not working

@Palaniyappan I followed everything as per your guidance but i got an error stating “Invoke Power Shell: The method or operation is not implemented”
The script i have written is as follows

Enter-PSSession -ComputerName “
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn

Please point out any mistakes i have committed here. This script runs perfectly when i run it directly on powershell

@rameezimtiaz i hope you solve this problem any solution you reached