I should also add that I am trying to run the batch file from the source, i have permissions to the folder, and I am not copying any of the files down to the machine as additional files as I do not think it is necessary if the batch file is calling them from the source
I think it's related to the thing 'LANDesk task run as LocalSystem'. This is an account which is different to Administrator and the current logged on user. That's why it ran successfully outside LANDesk, basically it ran as the current logged on user. In 8.8 you can specify run as LocalSystem or Current user's account in the distribution package. For 8.7 there is a tool which also can do this. See this document:
Thanks for the response.
The problem I have is that I need to run the batch file with SYSTEM rights as the logged in user does not have write access to C:\Program Files\MacroView
It would appear that the copying of the files is working to the client but that the batch file is not being executed?
If I run the batch file from the cache on the PC it works?
I am using the same PC as for the testing as I used for when I ran from the UNC share with the same logged in user?
The issue was a local PC issue. I tried on several other machines and it deployed successfully.
The error log on the client was just not very descriptive!