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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
Worked for me!...Thanks!!
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.