LANDesk: Scheduled Task Script to Run an Hourly Script
LANDesk Script: [MACHINES] REMEXEC0=<qt/>%LDMS_CLIENT_DIR%LocalSch.exe<qt/> /del /range=%quote%1001|2000%quote% REMEXEC1001=<qt/>%LDMS_CLIENT_DIR%LocalSch.exe<qt/> /exe=%quote%C:Toolsbinhstart.exe /NOCONSOLE%quote% /cmd=<qt/>""perl C:PerlSiteLibRun-Inventory-Win7.pl -P -D""<qt/> /taskid=1001 /freq=600 /start=%quote%27 Jan 1990 01:54:31%quote% Explanation: LINE#1 The REMEXEC0 command deletes any of the LD Scheduled Tasks with id’s ranging between 1001 to 2000. This is to ensure that your command in next line will get proper task id. Doesn’t make any difference as long as /taskid is there and there are no tasks with ID that falls under the specified range. LINE#2 The REMEXEC1001 command runs the Perl script in as a hidden process with LD task id as 1001 and runs at the top […]
Read more