How can I copy a file directly between two remote servers without passing through my local server?
Asked by
TechTinker123
Hey everyone, I'm trying to run a script that copies a large file from one remote server to another without having the file go through the local server (which is acting as the stage server). Even with admin privileges, I'm getting an 'Access is denied' error. Here's a snippet of what I've written so far: I'm using PowerShell to set up remote sessions and run a RoboCopy command. I've heard it might be a double hop issue, but I'm not sure how to resolve it. Any assistance would be greatly appreciated!
Answers
Is it essential to use PowerShell for this task? If all you need is a file copy, utilities like SyncThing can sync files automatically without any hassle. It might be simpler!
Reply to this answer
Add your answer
Answers are reviewed before publication.
TechTinker123: This is part of a long-running script where we need the backup file copied just once before moving on with other steps.