dominicm Absent Member.
Absent Member.
4221 views

sysprep with ZCM yes or no

hi everyone,

well it's not the first time I ask this question. The answers are never finals. I've just read the ZCM 11 imaging docs, it tells to use sysprep in a base image. If we use sysprep, we have to include a file in the C: to instruct zcm to "not restore mask". But this way, zenworks will never be able to restore the infos about Workstation name on already used machines.... how can we deal with that? I've read that we have to "let sysprep deal with SID changing".... so what, Imaging can't do anymore this part?

If we don't do sysprep, does zen can deal with the SID, workstation name and also, KMD CMID ?? Before Win7, zen was dealing with all this (perhaps except the cmid).

Sysprep is a long process, other to just duplicate machines like in the old days with winxp.

thanks for your help!
Labels (2)
0 Likes
7 Replies
Anonymous_User Absent Member.
Absent Member.

Re: sysprep with ZCM yes or no

In general, you should sysprep the image, especially for Win 7.
Syspreping does not take much time with Win 7, not like XP.

Unless you're using BitLocker, create your Win 7 base image without
that 100MB System Reserved partition. It'll make your life much
easier. Instructions for this are on the web. Google it.

You'll need to use MS WAIK tools to prepare an unattend.xml file. Look
on CoolSolutions for an excellent article on how to do this
(http://www.novell.com/communities/node/12320/windows-7-automated-imaging-and-zcm-registration).

When the sysprep mini-setup runs, it will re-SID the box.
Unfortunately, if you're using img, it will also unnecessarily re-SID
the image each time a zmg file is applied. This includes add-on
images. To avoid this, add a hidden file called restoremask.xml to the
root of the C: drive before you sysprep the image. This file contains:

<ISDConf>
<DoNotRestoreMask>
<SID>true</SID
</DoNotRestoreMask>
</ISDConf>

Note: This references only the SID. Nothing else is affected.

I script the install of the ZCM agent (delivered as an addon). Once
it's installed, it will detect any Image Safe Data and rename the box
as necessary. If you really want the original SID back, in the agent
install script delete the restoremask.xml file. The ZCM agent will
then restore everything from the ISD.

Regards,

Don


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


hi everyone,

well it's not the first time I ask this question. The answers are
never finals. I've just read the ZCM 11 imaging docs, it tells to use
sysprep in a base image. If we use sysprep, we have to include a file
in the C: to instruct zcm to "not restore mask". But this way,
zenworks
will never be able to restore the infos about Workstation name on
already used machines.... how can we deal with that? I've read
that
we have to "let sysprep deal with SID changing".... so what, Imaging
can't do anymore this part?

If we don't do sysprep, does zen can deal with the SID, workstation
name and also, KMD CMID ?? Before Win7, zen was dealing with all
this
(perhaps except the cmid).

Sysprep is a long process, other to just duplicate machines like in
the
old days with winxp.

thanks for your help!
0 Likes
bdesaute Absent Member.
Absent Member.

Re: sysprep with ZCM yes or no

Well... not sure if this can apply to you, but here's what I do. I install the ZCM agent as my last thing to do before closing my image. When it wants to reboot, I cancel the reboot.
So the next time it boots, it takes the info on the zen partition, GUID, name, etc. Works all the time for my 600+ Windows 7.
0 Likes
gerwil1478
New Member.

Re: sysprep with ZCM yes or no

I like that.....
Simple...
But how do you rename your machine?
1. Win7 with all your stuff on it and generic name.
2. Install ZEN agent - image it just after it completes the install and before it reboots.
3. When it boots up for first time -somehow rename the workstation before the ZEN agent registers it.

Cheers
0 Likes
bdesaute Absent Member.
Absent Member.

Re: sysprep with ZCM yes or no

GERWIL;2176620 wrote:
I like that.....
Simple...
But how do you rename your machine?
1. Win7 with all your stuff on it and generic name.
2. Install ZEN agent - image it just after it completes the install and before it reboots.
3. When it boots up for first time -somehow rename the workstation before the ZEN agent registers it.

Cheers


For new machines, it rename them using --> zisedit computername="Name here". it's in an imaging script using the MAC address as reference in a text file.
For machine already imaged, it use the image safe data.

#Get the text file
tftp $PROXYADDR -c get wkslist.++ $file
# Get the MAC and the Computername
mac=$(echo $wksinfo | cut -d"," -f1)
wsname=$(echo $wksinfo | cut -d"," -f2)

etc....

I can email you the whole script if you want.

Ben
0 Likes
Highlighted
posty Absent Member.
Absent Member.

Re: sysprep with ZCM yes or no

hi,

@Ben: any chance to get this script from you? i wrote you a pm!

thx in advance,
martin
0 Likes
gator17 Absent Member.
Absent Member.

Re: sysprep with ZCM yes or no

Will this process work for windows xp as well?

Well... not sure if this can apply to you, but here's what I do. I install the ZCM agent as my last thing to do before closing my image. When it wants to reboot, I cancel the reboot.
So the next time it boots, it takes the info on the zen partition, GUID, name, etc. Works all the time for my 600+ Windows 7.
0 Likes
bdesaute Absent Member.
Absent Member.

Re: sysprep with ZCM yes or no

gator17;2178129 wrote:
Will this process work for windows xp as well?

Well... not sure if this can apply to you, but here's what I do. I install the ZCM agent as my last thing to do before closing my image. When it wants to reboot, I cancel the reboot.
So the next time it boots, it takes the info on the zen partition, GUID, name, etc. Works all the time for my 600+ Windows 7.



Yest, it works. I also have an image for older workstation in Windows XP SP3, Zen 11. I do the samething, works all the time!
If it's a new computer, get is name from the script using zisedit computername="Name Here"
For a computer already image, it use the image safe data.

Ben
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.