Quantcast
Channel: LANDESK User Community : Discussion List - Software Distribution
Viewing all articles
Browse latest Browse all 484

How to see what your bat file is doing when run as a scheduled task in LANDesk

$
0
0

Had quite a few issues recently when trying to run batch file packages. They work fine when ran directly on the machine, but not when using LANDesk. The task say ssuccessful but what was supposed to happen, hasn't.

 

By doing the following you can export the contents of what has happened when the bat file was run on the client exactly as you would see if running the commands locally from a cmd prompt window:

e.g Access denied, file not found etc

 

Right click your bat file package

Click Properties

Click Install/Unistall options

Add the following line in command line (without the quatation marks and changing install.txt to the name of your app):

"> c:\Install.txt 2>&1"

Schedule a task to run the batch file package, which should create c:\Install.txt which will show exaclty what happened on the clients

 

Screenshot included

 

 

Produces a file like the one attached


Viewing all articles
Browse latest Browse all 484

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>