11.9 Scheduling Scripts to Run

You can use the Microsoft Task Scheduler or another scheduling tool to create automated tasks to execute one or more AppManager command-line scripts on the computers you choose. To do this, you should create a batch file that starts the scripting host and runs the script(s) that perform the AppManager task you want to automate. For example, if you are using one of the sample command-line scripts provided with AppManager, the batch file might look similar to this:

REM
call c:\program files\netiq\appmanager\bin\Netiqcmd.exe startjob.vbs /SERVER=alien1 /DATABASE=NYQDB /JOBID=22

NOTE:

  • The scheduling program you use must interact with the Desktop and allow you to log on as a specific Windows user. Service‑based scheduling programs such as SQL Server Management Studio (with its Scheduled Task feature) and the Windows AT command do not meet these requirements. They only allow you to log on under the system account, which doesn’t have the full set of permissions needed to run AppManager command-line scripts, and they do not allow the command-line script to interact with the Desktop.

  • Be sure to modify the command-line statement in the batch file to reflect the proper path to the scripting host and valid logon information for the repository.