4

I'd like to copy a large file on a remote computer, to the same remote computer, without going through the network.

The computer on which the files to be copied are is running Windows Server 2003.

Anyone knows how to do that?

splattne
  • 28,508
  • 20
  • 98
  • 148
leo
  • 143
  • 1
  • 6
  • You'd like to copy a file from one directory on the computer to another? Is this a troll? – CarpeNoctem Feb 24 '10 at 10:27
  • 1
    I'm sorry I was unclear, I want to program that kind of action to be executed in batch mode from another computer... – leo Feb 24 '10 at 13:34

4 Answers4

4

Use psexec to run the copy command on the remote machine.

John Gardeniers
  • 27,458
  • 12
  • 55
  • 109
3

Use a Remote Desktop Connection.

CJM
  • 730
  • 3
  • 12
  • 28
3

Look at PowerShell 2's remotin capabilities. It will run a complete script on a remote system (or the same script on many remote systems concurrently).

http://blogs.msdn.com/wmi/archive/2009/07/24/powershell-remoting-between-two-workgroup-machines.aspx

Richard
  • 5,324
  • 1
  • 23
  • 20
1

Powershell remoting is your best option. While PSexec and running a copy command remotely will work PSexec is often flagged by antivirus software as a virus. See PowerShell 2.0 remoting guide: Part 1 – The basics

Jim B
  • 24,081
  • 4
  • 36
  • 60
  • Powershell also gets flagged by good AV software when trying such things. – John Gardeniers Feb 24 '10 at 22:15
  • Really!? Can you say which one you've seen doing that? I know why psexec gets flagged- many older viruses incorporated it into their code, but I hadn't heard of ws-man getting flagged – Jim B Feb 24 '10 at 23:45
  • I can't recall which ones I've seen flag it but in each case heuristic detection was set to maximum, so it's to be expected. Any AV software that doesn't flag such remote control methods is questionable anyway. – John Gardeniers Feb 25 '10 at 12:25