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

hi
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 “canonextest.cantest.com
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
New-Mailbox

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