The script below is executed (under a service account, DOMAIN\SVC123) from AutoSys (SERVER001). It executes an SSIS package (on SERVER002) which is intended to log and read files on SERVER003. However, I receive an ACCESS DENIED error once it tries to read files on SERVER003.
powershell.exe -Command "$respObject = Invoke-Command -Computer SERVER002 -ScriptBlock {[PSCustomObject]$respObject = @{'StdOut' = & 'D:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\dtexec.exe' /f 'F:\SSISPackages\pkg_ingest.dtsx'; 'ExitCode' = $LASTEXITCODE}; return $respObject}; $respObject.StdOut; Exit $respObject.ExitCode"
My research has led me to believe that this is due to the "double hop" issue, where the credentials aren't received by the 3rd server. Is there a way to modify the script above to pass the credentials all the way to SERVER003?