I am running Bamboo on server A(it is also the building agent) after the artifact file is created I am trying to copy it using robocopy to server "B" and I get an access denied error. But if I run it form a standard command prompt, it works fine. I am logged into server "A" when I run it.
The command is pretty straight forward
c:\Atlassian\bamboo-home\xml-data\build-dir\FTD-BB-JOB1\BB_Test\Artifact \\serverB\c$\PreDeployment\