Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Automating copying files via Rdp

Posted on 2014-12-12
9
Medium Priority
?
389 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
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…

618 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