Solved

Automating copying files via Rdp

Posted on 2014-12-12
9
347 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 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
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
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.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

695 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