Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
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 Answers 4

up vote 3 down vote accepted

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

share|improve this answer

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

share|improve this answer
    
Thanks, I'll give it a try. –  leo Feb 24 '10 at 13:35

Use a Remote Desktop Connection.

share|improve this answer
    
I need it in batch mode. –  leo Feb 24 '10 at 13:35

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

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.