Failing custom action

(imported topic written by ahousten91)

I am trying to take this action:

//Delete existing backup.bat on client

delete “c:\tools\backup.bat”

//Copy new backup.bat to client

copy “\file01\source_code\backup\backup.bat” “c:\tools”

The first part, the delete, is working fine. The second part, the copy is failing. When I log onto a client pc where the command fails via BigFix and open a dos window then paste in the exact same copy command, it works with no problem.

Any ideas?

(imported comment written by NoahSalzman)

Remember that the BigFix Agent is running as SYSTEM. Does SYSTEM have access to the \file01 share?

(imported comment written by ahousten91)

I set up a null session share as documented here: http://support.bigfix.com/bes/misc/null_session_share.html. It works when I follow the steps in the support doc but not when I use BES.

(imported comment written by BenKus)

Possibly try changing the last line from:

copy “\file01\source_code\backup\backup.bat” “c:\tools”

to

copy “\file01\source_code\backup\backup.bat” “c:\tools\backup.bat”

And it might be interesting to try to double-check the null-session share…

Ben