Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Michael_Fleming Absent Member.
Absent Member.

Re: Opinions... desktop image with or without ZCM agent?

magic31;1970830 wrote:
Add this to the top of the original 'code': SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx


Just out of interest, do you do a computer rename before installing the agent? If so, at what stage and how? I don't want the image pc name when it registers in ZCM.

I have a vb script that runs after sysprep which requires user input - location, novell username, password and asset tag. It then does a bunch of things like creates local account, comp rename, emails details, configures Novell client, zwsreg, regional settings, installs software and drivers, reboots, autologin, install anything that is user or new comp specific as rename only works after reboot. Computername = Siteprefix-Asset tag.

If there is a smarter way to do this please do tell.
0 Likes
Knowledge Partner
Knowledge Partner

Re: Opinions... desktop image with or without ZCM agent?

Michael_Fleming;1971523 wrote:
Just out of interest, do you do a computer rename before installing the agent? If so, at what stage and how? I don't want the image pc name when it registers in ZCM.

I have a vb script that runs after sysprep which requires user input - location, novell username, password and asset tag. It then does a bunch of things like creates local account, comp rename, emails details, configures Novell client, zwsreg, regional settings, installs software and drivers, reboots, autologin, install anything that is user or new comp specific as rename only works after reboot. Computername = Siteprefix-Asset tag.

If there is a smarter way to do this please do tell.


Well you can enable dynamic updating of hostname. So if you change the name of a windows box with zcm agent installed it will automatically rename the workstation object n ZCM.

Thomas
0 Likes
Michael_Fleming Absent Member.
Absent Member.

Re: Opinions... desktop image with or without ZCM agent?

thsundel;1971535 wrote:
Well you can enable dynamic updating of hostname. So if you change the name of a windows box with zcm agent installed it will automatically rename the workstation object n ZCM.

Thomas


That will do it. Thanks Thomas 🙂
0 Likes
joebrug Outstanding Contributor.
Outstanding Contributor.

Re: Opinions... desktop image with or without ZCM agent?

I ended up installing the agent as part of my base image (base image only has XP, Novell Client, and ZCM agent) then running the "zac fsg -d" as part of the preimg.bat file just before sysprepping. This results in less reboots during the imaging process, etc.. also the "zenworks imaging agent" doesnt have to run when the computer first boots up to rename workstation, etc. Actually have a quite involved method of doing my base image, but works great! Workstations are named by the service tag (dells).

#novell on efnet
0 Likes
gerwil1478
New Member.

Re: Opinions... desktop image with or without ZCM agent?

Hi
Just my two bobs worth and I'm not on any side. I install the agent locally but when the installation is complete and it asks you to reboot -pull the network cable. The agent then goes into a comatose state and won't interfere with anything else you want to do with the base image. I've got site licences so no issue with registering individually. Then run the scripts attached to rename the workstation, reboot and then register the ZCM agent. A disadvantage is that if you want to reimage a machine you have to delete the device from ZCM before reboot.

No charge but praise appreciated.

Cheers
0 Likes
cjwardedu Absent Member.
Absent Member.

Re: Opinions... desktop image with or without ZCM agent?

For my windows xp opearting system base image I have the agent installed in the image, but not registered in the zone. When I image a computer the only thing I have to do is zisedit to name the computer before imaging. If the computer is already in the zone I can just tag it to image and as long the computer bios is set to boot pxe the computer will auto image and be registered in the zone ready for me to manage it. When building a base image this is a summary of what I do:

Install the os and updates
Download the full zcm agent
Pull out the network cable to disconnect the computer from the network
Install the agent, but don't reboot after the install after the install is finish
Run C:\Program Files\Novell\Zenworks\Bin\Preboot\ziswin.exe
Click Edit and clear image safe data and save
Select No to the question about just image setting
Delete DeviceGUID and DeviceData file located at: C:\Program Files\Novell\ZENworks\conf
Restart the computer and boot into Zenworks Imaging Mode
Do a zisedit -c at the command line
Take the image of the computer

This has been working for me without any issues, but the down side to this is that I have to build a new base image when I apply an update to zcm. With Zen7 that was not issue as the agent did not get updated as much as the zcm agent does.

I am looking for my Windows 7 deployment not to install the agent into the base image, but some how after the imaging take place. The only problem that I am seeing with this is I need to fine a way to name a computer based on information that I give it that is not in bios as I name computer lab computers by there: site location, room number, and assign computer number.
0 Likes
Highlighted
chasb73 Absent Member.
Absent Member.

Re: Opinions... desktop image with or without ZCM agent?

joebrug;1971632 wrote:
I ended up installing the agent as part of my base image (base image only has XP, Novell Client, and ZCM agent) then running the "zac fsg -d" as part of the preimg.bat file just before sysprepping. This results in less reboots during the imaging process, etc.. also the "zenworks imaging agent" doesnt have to run when the computer first boots up to rename workstation, etc. Actually have a quite involved method of doing my base image, but works great! Workstations are named by the service tag (dells).


Hi Joe

Do you pull out the service tag from somewhere to auto name the workstations?

Cheers
0 Likes
joebrug Outstanding Contributor.
Outstanding Contributor.

Re: Opinions... desktop image with or without ZCM agent?

Yep.

#Set ZISD to name workstation by serial
zisedit ComputerName=$(zhw -serial)
zisedit DNSHostName=$(zhw -serial)

Its a fairly involved script but "echo $(zhw -serial)" should show you the service tag on dell's.

Let me know if you want to know more.. I actually push down a sysprep template that contains sysprep.inf with ComputerName=MYNAME, then I do a find and replace , and replace it with $(zhw -serial), then I push my base image down, then restore the new sysprep.inf (with the serial tag i.e. ComputerName=123456) over the one in my base image. So when the computer is done imaging, and boots, it names it according to what is in my sysprep.inf

#novell on efnet
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Opinions... desktop image with or without ZCM agent?

Would you please post your script?

Thank You,

Don

joebrug <joebrug@no-mx.forums.novell.com> wrote:


Yep.

#Set ZISD to name workstation by serial
zisedit ComputerName=$(zhw -serial)
zisedit DNSHostName=$(zhw -serial)

Its a fairly involved script but "echo $(zhw -serial)" should show you
the service tag on dell's.

Let me know if you want to know more.. I actually push down a sysprep
template that contains sysprep.inf with ComputerName=MYNAME, then I do
a
find and replace , and replace it with $(zhw -serial), then I push my
base image down, then restore the new sysprep.inf (with the serial tag
i.e. ComputerName=123456) over the one in my base image. So when the
computer is done imaging, and boots, it names it according to what is
in
my sysprep.inf
0 Likes
joebrug Outstanding Contributor.
Outstanding Contributor.

Re: Opinions... desktop image with or without ZCM agent?

Sure.

#Set ZISD to name workstation by serial
zisedit ComputerName=$(zhw -serial)
zisedit DNSHostName=$(zhw -serial)

#Detect type of drive and set HDD variable
HDD=`img p | grep -E ^1 | awk '{print $2}'`

#Delete all partitions and create temp
if echo $HDD | grep hda ; then hdparm -d1 /dev/hda ; fi
img pdall
if echo $HDD | grep hda ; then hdparm -d1 /dev/hda ; fi
img pc1 fat16 10
if echo $HDD | grep hda ; then hdparm -d1 /dev/hda ; fi
if echo $HDD | grep hda ; then
sleep 30
echo w> /tmp/test
fdisk /dev/hda < /tmp/test
fi

mkfs.msdos $HDD

#Restore sysprep.inf template
img rp $PROXYADDR sysprep_template.zmg
mount $HDD /mnt/harddisk

#Search sysprep for MYNAME and replace with Service Tag
sed -i s/CHANGEME/$(zhw -serial)/g /mnt/harddisk/sysprep/sysprep.inf
umount /mnt/harddisk

#Create image of sysprep changes in local temp location
img ml /tmp/$(zhw -serial).zmg

img pd1
img pc1 ntfs
img pa1

if echo $HDD | grep hda ; then hdparm -d1 /dev/hda ; fi

img rp $PROXYADDR xpsp3sysprepJan26.zmg
img rp $PROXYADDR utils.zmg

#Non-destructively restore sysprep.inf over one in base image
img rl /tmp/$(zhw -serial).zmg a1:p1

#Restore drivers for specific model computer
hwinfo --bios > /tmp/hwinfo.bios
if cat /tmp/hwinfo.bios | grep -i "Optiplex GX620" ; then
img rp $PROXYADDR addon-image/gx620driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex 760" ; then
img rp $PROXYADDR addon-image/opti760driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex 780" ; then
img rp $PROXYADDR addon-image/opti780driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "Optiplex 745" ; then
img rp $PROXYADDR addon-image/gx745driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex GX270" ; then
img rp $PROXYADDR addon-image/gx270driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "Latitude D620" ; then
img rp $PROXYADDR addon-image/d620driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "Latitude D610" ; then
img rp $PROXYADDR addon-image/d610driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "Latitude D600" ; then
img rp $PROXYADDR addon-image/d600driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex GX260" ; then
img rp $PROXYADDR addon-image/gx260driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex GX280" ; then
img rp $PROXYADDR addon-image/gx280driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex 755" ; then
img rp $PROXYADDR addon-image/gx755driver.zmg
fi

#novell on efnet
0 Likes
ptalanoa1 Absent Member.
Absent Member.

Re: Opinions... desktop image with or without ZCM agent?

Joebrug, Whats in your "sysprep_templet.zmg" is it just an Addon image with the sysprep folder?





joebrug;2079465 wrote:
Sure.

#Set ZISD to name workstation by serial
zisedit ComputerName=$(zhw -serial)
zisedit DNSHostName=$(zhw -serial)

#Detect type of drive and set HDD variable
HDD=`img p | grep -E ^1 | awk '{print $2}'`

#Delete all partitions and create temp
if echo $HDD | grep hda ; then hdparm -d1 /dev/hda ; fi
img pdall
if echo $HDD | grep hda ; then hdparm -d1 /dev/hda ; fi
img pc1 fat16 10
if echo $HDD | grep hda ; then hdparm -d1 /dev/hda ; fi
if echo $HDD | grep hda ; then
sleep 30
echo w> /tmp/test
fdisk /dev/hda < /tmp/test
fi

mkfs.msdos $HDD

#Restore sysprep.inf template
img rp $PROXYADDR sysprep_template.zmg
mount $HDD /mnt/harddisk

#Search sysprep for MYNAME and replace with Service Tag
sed -i s/CHANGEME/$(zhw -serial)/g /mnt/harddisk/sysprep/sysprep.inf
umount /mnt/harddisk

#Create image of sysprep changes in local temp location
img ml /tmp/$(zhw -serial).zmg

img pd1
img pc1 ntfs
img pa1

if echo $HDD | grep hda ; then hdparm -d1 /dev/hda ; fi

img rp $PROXYADDR xpsp3sysprepJan26.zmg
img rp $PROXYADDR utils.zmg

#Non-destructively restore sysprep.inf over one in base image
img rl /tmp/$(zhw -serial).zmg a1:p1

#Restore drivers for specific model computer
hwinfo --bios > /tmp/hwinfo.bios
if cat /tmp/hwinfo.bios | grep -i "Optiplex GX620" ; then
img rp $PROXYADDR addon-image/gx620driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex 760" ; then
img rp $PROXYADDR addon-image/opti760driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex 780" ; then
img rp $PROXYADDR addon-image/opti780driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "Optiplex 745" ; then
img rp $PROXYADDR addon-image/gx745driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex GX270" ; then
img rp $PROXYADDR addon-image/gx270driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "Latitude D620" ; then
img rp $PROXYADDR addon-image/d620driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "Latitude D610" ; then
img rp $PROXYADDR addon-image/d610driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "Latitude D600" ; then
img rp $PROXYADDR addon-image/d600driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex GX260" ; then
img rp $PROXYADDR addon-image/gx260driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex GX280" ; then
img rp $PROXYADDR addon-image/gx280driver.zmg
elif cat /tmp/hwinfo.bios | grep -i "OptiPlex 755" ; then
img rp $PROXYADDR addon-image/gx755driver.zmg
fi
0 Likes
joebrug Outstanding Contributor.
Outstanding Contributor.

Re: Opinions... desktop image with or without ZCM agent?

Correct, its an add-on image that has c:\sysprep\sysprep.inf in it with ComputerName=MYNAME (or CHANGEME) cant remember.

#novell on efnet
0 Likes
ptalanoa1 Absent Member.
Absent Member.

Re: Opinions... desktop image with or without ZCM agent?

Joebrug, Whats in your "sysprep_templet.zmg" is it just an Addon image with the sysprep folder?
-Paul

Don Horsfall;2079284 wrote:
Would you please post your script?

Thank You,

Don

joebrug <joebrug@no-mx.forums.novell.com> wrote:


Yep.

#Set ZISD to name workstation by serial
zisedit ComputerName=$(zhw -serial)
zisedit DNSHostName=$(zhw -serial)

Its a fairly involved script but "echo $(zhw -serial)" should show you
the service tag on dell's.

Let me know if you want to know more.. I actually push down a sysprep
template that contains sysprep.inf with ComputerName=MYNAME, then I do
a
find and replace , and replace it with $(zhw -serial), then I push my
base image down, then restore the new sysprep.inf (with the serial tag
i.e. ComputerName=123456) over the one in my base image. So when the
computer is done imaging, and boots, it names it according to what is
in
my sysprep.inf
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.