Own batch scripts can be created to run as a pre-installation, mid-level, or port-installation task in the KACE Boot Environment for Windows before or after installing the operating system, or re-imaging a target device.
1. Complete one of the following steps:
a. On the left navigation pane, click Library to expand the section, then click Pre-installation Tasks to display the Pre-installation Tasks page.
b. On the left navigation pane, click Library to expand the section, then click Mid-level Tasks to display the Mid-Level Tasks page.
c. On the left navigation pane, click Library to expand the section, then click Post-installation Tasks to display the Post-installation Tasks page.
2. On the list page that appears,
select Choose Action > Add BAT Script.3. On the page that appears, in
Name, enter a logical name to identify the task.
The task runs in the
KACE Boot Environment (Windows).
4. In
BAT Script, enter
the script.
The following
commonly used commands are available from within the KACE Boot Environment
(KBE):
◦ bcdedit.exe
◦ bootsect.exe
◦ chkdsk.exe
◦ format.com
5. Select the
Reboot Required check box to reboot the appliance and run the next task in the sequence.
6. In
Expected Return Code, enter a code that the task should return, if applicable. Otherwise, leave the default value of zero, '0'.
In general, most tasks exit with a zero '0' code, indicating success, but can set it to any positive value, as applicable. Some installers exit with a different code, even when the installation is successful. For example, antivirus installers are typically successfully installed but exit with a different return code because requires a device reboot.
7. In Notes, add a note to identify the task.
8. Click Save.
The task is now available to assign to scripted installations, sysprepped system images, and nonsysprepped system image deployments.