Novell is now a part of Micro Focus

Deploying a Base Image Plus Addons

Novell Cool Solutions: Trench
By James Davey

Digg This - Slashdot This

Posted: 23 Sep 2004

Since we work in a school environment with a number of different labs and a number of different applications, using ZENworks to create workstation image objects using a base image with addon images for each of the labs is the way to go for us. The problem is, to get all those addons to install requires the lab manager to first image the machine, log in and run NAL to install the addon apps, then reboot so the workstation will be ready for users.

How about automating the entire process so that after imaging the workstation automatically reboots, logs in as the local admin, runs NAL to install any addon images or cached NAL objects, and then reboots once more to finally rest at the Novell login screen ready to go with all apps installed?

This can be done by combining cool tools found on this site with a batch file and registry settings into a single package. To go a step further, you can also include the option to clear any old zis information from the workstation and name it at the same time. We are using W2K, but the process should be the same.

Before sending an image up to your network, do the following:

  1. Create a ZMG folder under the Winnt folder and put the Runme.bat file and the two .reg files below in that folder. Also copy three other cool tools that can be found at this site, WSName, NCShtDwn, and ZisClearnt into this folder.
  2. Run InitialSetup.reg which will prepare the workstation by having the batch file run once after imaging, and will set it for autoadminlogon with the local administrator account. Be sure to edit this file before running, and put in your local administrator name and password.

What Will Happen

After imaging, the workstation will login locally as an admin user, run the batch file which will run NAL to install any addon images, remove the autoadminlogon feature from the registry, and then reboot. At this point, all addon images will have installed as NAL objects and the workstation will be ready to go.

We have been using this technique for over a year now, and it saves a lot of tech time since they no longer have to manually login to each machine, run NAL to install apps and reboot before the machine is ready. The only pause in the process will occur if you wish to name the workstation.

Reg Files


Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]


"Workstation Only"=dword:00000001


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"Workstation Only"=dword:00000000



rem "c:\Program Files\novell\zenworks\zwsreg.exe" -unreg
rem c:\winnt\zmg\zisclearnt.exe
rem c:\winnt\zmg\wsname.exe /noreboot

rem ###The next line stops the Auto Admin Login.###
c:\winnt\regedit.exe /s c:\winnt\zmg\winlogon2.reg

rem###Run NAL and unload
"c:\Program Files\Novell\Zenworks\nalwin32.exe" /u

rem ###This forcibly reboots the PC.####
c:\winnt\zmg\ncshtdwn.exe /7

NOTE: Modifying the RUNME batch file will allow you clear old zis information and to name the workstation. Just remove the REMs from the three indicated lines and this process will work to image new workstations as well as existing ones.

If you have any questions you may contact James at

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates