?
Solved

Automating copying files via Rdp

Posted on 2014-12-12
9
Medium Priority
?
369 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 25

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 1200 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
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 25

Assisted Solution

by:NVIT
NVIT earned 800 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 1200 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 25

Assisted Solution

by:NVIT
NVIT earned 800 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 1200 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Let’s list some of the technologies that enable smooth teleworking. 
In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

801 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