A couple of things to check on:
- Where is the vbs being referenced in relation to the batch file? Is it on a share or are you downloading it? If downloading where does it get put and does the batch knows call the script in the right location?
- What is the script doing? Is it referencing shares?
If you are referencing network shares at any point then chances are the permissions will be broken since localsystem has no network rights.
If the script and everything it does is local to the device then test deploy to a client so you see where the files are put. Test the batch and script from the locations where these reside.
Easiest way I have to test the permissions is to start a command prompt as local system, you can do this using the windows scheduler but my preference has always been remote execute via remote control providing you have the 'run as administrator' option selected. This then means anything you run in the command prompt is running with the same rights LD would use.
MarXtar Ltd/MarXtar Corporation
LANDESK One Development Partner
The One-Stop Shop for LANDESK Enhancements