I am using Robocopy command to copy some files/directory from a pullserver to target node in DSC. When I run the same command in powershell it works fine, but when I am using the same in Script resource , it gives me Access Denied error.(I tried using xRobocopy module, but got the same error).
All other DSC scripts running fine with the same credential(Even some file resource written to copy some file also work fine).Here is the robocopy command
ROBOCOPY.exe “\$PullServer\d`$\xxxxxxx” “D:\xxxxx” /DCOPY:T /MIR /v /log:D:\logcopy.txt
Any suggestion would be much appreciated.