Is there anyway we can copy and paste inside RDP connection?
The problem i am automating is that I have to login to RDP then goto shared location check the file if it exists then move that file to some folder in C drive. I have to do all this in RDP.
RemoteException wrapping System.Management.Automation.CommandNotFoundException: The module 'Copy-Item -Path ’ could not be loaded. For more information, run 'Import-Module Copy-Item -Path '.
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Sometimes when I try to copy a file from my local computer to a Remote Desktop session, the option to paste doesn’t work. Here are some things that can work:
We can so changes from the Client Side:
Right-click on the RDP icon that you use to connect, then select “Edit“.
Select the “Local Resources” tab.
Check the “Clipboard” option. To allow file copying and pasting, select “More…” and proceed to step 4. If you just need the ability to copy and paste text and not files, stop here and click “OK“.
Select the “Drives” option. Click “OK“, then “OK” again.
Ensure “Do not allow Clipboard redirection” is set to “Not Configured” or “Disabled“.
Above steps are for Windows 2016 which I have on my system. This should be all you need to enable copying and pasting of files between your computer and a Remote Desktop.