Archive for July 2010

Create a scripted Zenworks Imaging boot CD   3 comments

In this post, I’ll be showing you how to create a scripted Zenworks Imaging boot CD. This has a few advantages over the standard CD, like automatic reboot, a much shorter command required to restore an image, and a custom welcome screen.

First, you’ll need to download and install MagicISO and Notepad++.

Open MagicISO, then open your ISO  image file.

In the root directory of the disc, find the file named settings.txt, right-click it, then click “extract.”  Save it in the location of your choice.

Next, do the same for isolinux.cfg, found in /boot/i386/loader/.

Now, you’ll need to open settings.txt with Notepad++ and find the lines that read:

#PROXYADDR is the IP address or DNS name of the ZENworks Imaging Server.

Remove the comment from the second line and enter the IP address of your imaging server after the = sign, so it looks like this:

#PROXYADDR is the IP address or DNS name of the ZENworks Imaging Server.

This will prevent it from prompting you for the address when booting the disc.  Save and close settings.txt, and open isolinux.cfg with Notepad++.

Change the first line, which reads “default linux,” to read “default manual”

This causes “manual” to be automatically highlighted at boot.  Next, you’ll change the timeout to a shorter period, so you don’t have to wait for manual to actually be selected.

Find the line that reads “timeout    200” and change the 200 to 001.

Save and close isolinux.cfg.

Now, go back to MagicISO, select the root directory, and click the “Add Files” button.

Select the settings.txt that you edited and click “open.”  Click “yes” when prompted to overwrite.  Now, go to /boot/i386/loader/ and replace the old isolinux.cfg with the new one, in the same manner.  Alternatively, you can also drag files from the explorer window at the bottom.

If you’d like a custom welcome screen, replace /boot/i386/loader/welcome.jpg with any 800×600 jpg image.  Just make sure to name it welcome.jpg.

Now, you’re ready to create an image restore script.  Make a new file with Notepad++ and enter the following commands:

img rp //server/share/image_file.zmg
reboot -f

Where “” is the IP address of your imaging server.  The “reboot -f” command will cause the computer to automatically reboot when the imaging process is complete.

Save the file with a “.img” extension.  Since Linux is case sensitive, I give my scripts all-lowercase filenames, to avoid confusion.  Create a separate .img file for each of your images.

Going back to MagicISO, you’ll add these script files to the /addfiles/bin/ directory.  You’re done editing the ISO image, so you can save it (File > Save) and exit MagicISO.  Burn the image to CD.

When you boot the CD, it should automatically proceed to the bash prompt.  Once there, just enter the name of a script file to restore the image.  Be sure to include the extension.  For example:


This will restore the image and automatically reboot when it’s done.


Posted July 21, 2010 by i2kdave in Uncategorized