Novell Home

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

InitialSetup.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce]
"runme"="c:\\winnt\\zmg\\RUNME.bat" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="ADMINNAME"
"AutoAdminLogon"="1"
"DefaultPassword"="ADMINPASSWORD"
"System"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Novell]


[HKEY_LOCAL_MACHINE\SOFTWARE\Novell\login]
"DefaultUserName"="ADMINNAME"
"AutoAdminLogon"="1"
"DefaultPassword"="ADMINPASSWORD"
"AutoAdminQueryNDS"=dword:00000000
"Workstation Only"=dword:00000001

Winlogon2.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"=""
"AutoAdminLogon"="0"
"DefaultPassword"=""
"DefaultDomainName"=""
"System"="ziswin.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Novell\login]
"DefaultUserName"=""
"AutoAdminLogon"="0"
"DefaultPassword"=""
"AutoAdminQueryNDS"=dword:00000001
"Workstation Only"=dword:00000000

RUNME.bat

REM###REMOVE THE rem FROM THE FOLLOWING THREE LINES TO CLEAR ANY OLD ZIS INFORMATION AND RENAME THE WORKSTATION##

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 jdavey@glenbrook.k12.il.us


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

© 2014 Novell