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.
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:
AdminPassword=ENTER LOCAL ADMIN PASSWORD HERE
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.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.