Tool

ZCM Imaging - Installing the ZEN Adaptive Agent in the image

Author Info

21 January 2008 - 2:39am
Submitted by: andystewartSL

tool
Reads:

11749

Score:
3.4
3.4
5
 
Comments:

5

license: 
N/A

Creating the Image

Instructions for preparing the PC for creating a ZEN Image.

  • Boot up PC.
  • Remove Zen Adaptive agent & reboot - tell it to remove machine from zone.
  • Download full Zen agent to local disk
  • Disconnect NIC
  • Run the Agent, but DON'T reboot at end.
  • Run REGEDIT
  • Browse to HKLM\Software\Novell\Zenworks\PreAgent and delete the GUID entry
  • Browse to HKLM\Software\Novell\Zenworks\Remote Management\Agent and delete any subkeys with machine names on them.
  • Browse to HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\System and remove the entry pointing at ziswin.exe (Leave the System key in place)
  • Run C:\Program Files\Novell\Zenworks\Bin\Preboot\ziswin
  • Click Edit, clear imagesafe data, and save - Click No to the question about "just imaged" if asked
  • Run sysprep -mini -quiet -reseal - this will prep the machine and switch it off.
  • Cut image.

Scripts

SYSPREP is set to auto login as the last used user-id (which should be the admin account you used to run SYSPREP) twice - The script files modify the registry to run certain commands in sequence.

The attached ZIP file contains some scripts which need modifying as follows:

Edit the sysprep.inf and enter the following details where relevant:

[GuiUnattended]
    AdminPassword=ENTER LOCAL ADMIN PASSWORD HERE

[UserData]
    ProductKey=ENTER YOUR PRODUCT KEY HERE
    FullName="ENTER FULL NAME HERE"
    OrgName="ENTER ORG NAME HERE"
	
	

Under the Compaq Folder, edit the install2.cmd as follows:

netdom /d:<DOMAIN NAME> /u:<DOMAIN ADMIN ACCOUNT> 
/p:<PASSWORD FOR DOMAIN ADMIN ACCOUNT> MEMBER /JOINDOMAIN

SYSPREP - 1st Reboot.

On 1st reboot, the script C:\COMPAQ\install.cmd is executed. This runs a HP/Compaq utility to obtain the BIOS information to assist in renaming the machine based on the BIOS Asset Tag. Obviously if you use any machines other than HP/Compaq, you'll need to replace this with an equivalent utility.

This then calls the script getassetno.pl which sets the Windows Machine name to the BIOS Asset Tag.

The registry is then updated to call install2.cmd at next reboot, and the machine is then rebooted.

SYSPREP - 2nd Reboot.

The 2nd Reboot again updates the registry, this time to put the ZISWIN call back into the system so that its called each time the machine is booted.

The PC is then added to the domain, and a couple of Local Groups are updated (feel free to update as required for your own purposes), and then the PC is rebooted for the final time.

Hope this helps.

AttachmentSize
imagescripts.zip2.14 MB

Author Info

21 January 2008 - 2:39am
Submitted by: andystewartSL




User Comments

If you plan to use this on multiple PC type...

Submitted by trepanga on 19 September 2008 - 5:48am.

use sysprep -bmsd command BEFORE using sysprep -mini -quiet -reseal.

Zen7 had the ZENWSIMPORT feature.

Submitted by havoc64 on 2 October 2008 - 8:03am.

Why wasn't the autoimport "register" feature put into ZCM? Is it something planned for a later date in ZCM?

ZAC

Submitted by anonymous (not verified) on 17 October 2008 - 1:10am.

Does the zac reg https:// -u -p not work to force a register after a build?

Delete the admin password!

Submitted by thtran on 3 October 2008 - 8:56am.

If you do it like that, please don't forget to delete the file "install2.cmd", as it contains the PASSWORD FOR DOMAIN ADMIN ACCOUNT in plain text!

Agent versions changes about every 2 months...

Submitted by ipst13 on 25 March 2009 - 1:18pm.

For my part, I have an add-on image that I can modify to update the current agent so, when a new system-update is launched in production, I just update my add-on image and any new workstation beiing imaged gets the latest agent.

Installation of the agent is automated within a script after the 2nd reboot.

No need to rebuild the whole image and do all the testing and drinking to much coffee!

my two cents!

© 2009 Novell, Inc. All Rights Reserved.