How can I copy a file directly between two remote servers without passing through my local server?

0
7
Asked By TechTinker123 On

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!

1 Answer

Answered By FileSyncFanatic On

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!

TechTinker123 -

This is part of a long-running script where we need the backup file copied just once before moving on with other steps.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.