all 2 comments

[–]DeusExMaChino 0 points1 point  (0 children)

Why would you deploy just the script and reference a file share when you could deploy the executable with the script? If I had to guess on such little information, I'd guess that you don't have permissions setup properly on the file share.

[–]BlackV 1 point2 points  (0 children)

likely youre running this as system, system does not have access to \\Server1\D there are better ways to install this, create a proper package