Link to home
Start Free TrialLog in
Avatar of vvajjhala
vvajjhala

asked on

Script to access a remote machine and copy files

Looking for a standard script that I can run from the Windows command prompt that would allow me to connect to a remote machine and using admin credentials and copy files...prefer not to use Powershell or download and tool like "PsExec"unless there is no other way.
Avatar of Qlemo
Qlemo
Flag of Germany image

There is no other way. You always need a tool to "log in" remotely, Windows does not have anything built-in (if you exclude WinRM used for PowerShell Remoting).
However, if you need nothing interactive, and a batch script will suffice, then you can create a scheduled task on the remote machine running that script.
ASKER CERTIFIED SOLUTION
Avatar of Gianpiero Rossi
Gianpiero Rossi
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Gianpiero. that is true only if you do not want to use that machine to copy files. It is not absolutely clear whether that is a requirement.

One reason for having to go to the remote machine and execute the copy there is e.g. for copying content between two locally attached drives (or SANs, whatever "closed" storage system), or from or to a local drive, or using high-speed network connection while you are connected via a slower pipe.
A RoboCopy as you suggested would have to transfer all data to and from the executing machine, at least doubling network traffic, if not causing unrequired traffic at all.
Avatar of vvajjhala
vvajjhala

ASKER

Worked for me!...Thanks!!