Deployment Solution 377
Command-Line Switches
axEvent CreateOscar /tci .\Images\oscar.img
axSched oscar CreateOscar /t "2009-12-31 08:00"
Example 2: Shutdown Oscar's computer right now.
axEvent Shutdown /tsd
axSched oscar Shutdown /t "2009-12-31 08:00"
Example 3: Run a Windows program on all computers right now. (Calc.exe is the only
line in script.txt.)
axEvent /w /i RunCalc /trs script.txt
axSched oscar RunCalc /t "2009-12-31 08:00"
Example 4: Create a Job (named Win and Off) that reimages a computer with Windows
2003 and deploys an Office 2003 Rapid Install Package.
axEvent "Win2003 and Office 2003" /tdi .\Images\w2003.img
axEvent "Win2003 and Office 2003" /a /tds .\RIPs\off2003.exe
To migrate Oscar to Windows 2003:
axSched Oscar "Win2003 and Off2003" /t "2009-12-31 08:00"
Schedule Job Utility
Syntax: axSched <computer/group> <job-name> (options)
OR
axSched /q <filename> (options)
Options
Note
The format for <time> is “yyyy-mm-dd hh:mm.” If the date is omitted, the current date
is assumed.
/t <yyyy-mm-dd hh:mm> Time to schedule
/n Don't notify servers of the changes
/f <folder-name> Schedule the job-name found in this
folder
/q <filename> File used for exporting jobs
/y Suppress confirmation prompts
/dsn <odbc-dsn-name> ODBC data source name
/d <db-server> Database server name
/u <db-user> Database user name
/db <db-databaseName> Database name
/p <db-password> Database user password
/lu <login-user> Deployment Server login user name
/lp <login-password> Deployment Server login password