Solved

Automating copying files via Rdp

Posted on 2014-12-12
9
317 Views
Last Modified: 2014-12-28
I currently copy files out from the other Windows VMs  (which I access via Rdp) by selecting it, Copy &
then Paste into my laptop.

I have batch jobs that will create output / csv files in the VMs which I would like to automate copying
out of the files to my laptop.

Don't think I can map a drive from my laptop to the VMs or can it?

Other than writing automon or sophisticated tools, is there any way to automate this copying?
0
Comment
Question by:sunhux
  • 4
  • 3
  • 2
9 Comments
 
LVL 24

Expert Comment

by:NVIT
ID: 40496617
Some ways to have your batch jobs copy to a share...
- If your laptop is on same network as the vm
- Set the Shared Folders setting of the vm (depends on your vm brand)
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 300 total points
ID: 40497413
If you are connecting using drives that are showing through the actual RDP session then they are accessible via the UNC \\tsclient\c etc. and can be used with UNC in batch files etc. or map a drive through them, e.g.

net use x: \\tsclient\c

Steve
0
 

Author Comment

by:sunhux
ID: 40497623
My laptop is not on same subnet/VLan as the VM & we have lots of firewalls, switch ACLs
& even a NetiQ PUM (Privileged User Manager) which we must login into & then access
from this PUM

Somehow RDP way of copy & paste works.

Net use x: \\tsclient\c   or   c$  doesn't work
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 43

Expert Comment

by:Steve Knight
ID: 40497638
ok. Do you have the rdp session set to connect drives, i.e. you can see the client drives selected in your rdp settings in explorer, or do you literally mean copy/paste contents of files via clipboard?
0
 

Author Comment

by:sunhux
ID: 40497963
> Rdp set to connect drives
Can you take a screen shot to show where this can be set?

Currently I literally copy/paste via clipboard
0
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 200 total points
ID: 40498067
sunhux,

I think Steve means in your RDP Connection dialog... Pick Local Resources tab. Under Local Devices and Resources, pick More. Expand Drives. Choose which drive you want to allow.
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 300 total points
ID: 40498378
Yes, sorry that was what I meant.  That all channels over the RDP port so works even if there is no other connection between them due to firewalls etc. though can be controlled by policies and other config on the server end, and of course needs enabling on the RDP session.
Steve
0
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 200 total points
ID: 40498395
sunhux,

I assume you allowed the drive per the Local Resources tab explained earlier.

When you connect, in Windows Explorer, can you see something like TSClient or "C on {FromHost}"? See image C-On-FromHost.

In my image, I rdp from a computer named LAPTOP. So, my remote host shows it as "C on LAPTOP".

Before I connected, on LAPTOP, I created a folder named c:\TestRDPShare. Then, I shared that folder as the same name with Everyone, with Permission Level: Contributor. See image TestRDPShare.

Then, I RDP'd to the remote computer. There, I could open TestRDPShare and copy files to it.

If you can do this also, it can be automated further.
C-On-FromHost.png
TestRDPShare.png
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 300 total points
ID: 40498427
I think the "TestRDPShare" only works through normal windows networking then (though could easily be wrong).  Normally either work in domain environments so it isn't relevant or connecting with servers that are firewalled, DMZ, on the net. etc. with only RDP port 3389 accessible and the Driveletter on Computername, accessible by \\tsclient\c etc. works on all those.

Have attached pic of setting on server and through group policy:

Group policy setting to allow drive redirection
RDP-TCP Proprties - RDP configuration on server
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question