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
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!
This is part of a long-running script where we need the backup file copied just once before moving on with other steps.