How to add a Product Key to windows 7 OS Images.
book
Article ID: 50796
calendar_today
Updated On:
Products
CA Automation Suite for Data Centers - Configuration Automation
CA Client Automation - Asset Management
CA Client Automation - IT Client Manager
CA Client Automation
CA Client Automation - Remote Control
CA Client Automation - Asset Intelligence
CA Client Automation - Desktop Migration Manager
CA Client Automation - Patch Manager
CA Server Automation
Issue/Introduction
Description:
Problem
- Cannot install Windows 7 OS Images if they are not volume license versions
- Invalid Product ID
Solution:
The OS Image needs an additional parameter added to allow the Product Key to be passed to target PC at run time.
There are 2 possible approaches:
- Modify the template so all Windows 7 images contain the product Key parameter.
- Modify the Image after it is created
Modifying the Template
- In Explorer, browse to:
"...Program Files\CA\DSM\OSIMPS\os-template\camenu"
- There are several Windows 7 templates
- IMAGEX-WIN7 = template to create a Windows 7 Image-x OS Image
- IMAGEX-WIN7x64 = template to create a Windows 7 64 bit Image-x OS Image
- WINDOWS7 = template to create a Windows 7 Unattended install OS Image
- WINDOWS7x64 = template to create a Windows 7 64 bit Unattended install OS Image
- Decide which template you are editing and open the .inf file for this template (eg IMAGEX-WIN7.INF)
- Add the following below <FullName>$OSUser$</FullName> and save the file
<ProductKey>
<WillShowUI>Never</WillShowUI>
<Key>$ProductID$</Key>
</ProductKey>
<Please see attached file for image>

- Open the .def file (eg IMAGEX-WIN7.DEF)
- Add the following below the entry "The Default Operator Password"
;The productId must be set to the valid ID of the original OS CD
ProductId=$prod-key$
<Please see attached file for image>

- Add the following entry at the bottom of the file and save the file
[ProductId]
Type=Text
Trans=no
MaxLength=29
Comment=Product ID needed by system installation
<Please see attached file for image>

Any OS image created with the IMAGEX-WIN7 template will now include the Product Key Parameter.
Modifying the Image
- Add the Product Key Parameter to the OS Image:
- In Explorer, browse to
"\Program Files\CA\DSM\Server\SDBS\var\managedpc\camenu"
- Open <imagename>.inf. i.e. If the image name is Win7PN, then the inf file name would be Win7PN.inf
- Add the following below <FullName>$OSUser$</FullName> and save the file
<ProductKey>
<WillShowUI>Never</WillShowUI>
<Key>$ProductID$</Key>
</ProductKey>
<Please see attached file for image>

- In Explorer, browse to
"Program Files\CA\DSM\Server\SDBS\var\managedpc\images\<ImageName>"
- Open the Default.inf file
Add the following below the entry "The Default Operator Password"
;The productId must be set to the valid ID of the original OS CD
ProductId=$prod-key$
<Please see attached file for image>

- Add the following entry at the bottom of the file and save the file
[ProductId]
Type=Text
Trans=no
MaxLength=29
Comment=Product ID needed by system installation
<Please see attached file for image>

- Update the Image
- Go under the following location on the ITCM Console
<Please see attached file for image>

- Select the image modified in step 1and go through wizard selecting the following options
<Please see attached file for image>

<Please see attached file for image>

- Allow the update to complete
<Please see attached file for image>

The product ID parameter is now available to select in the OS Image
<Please see attached file for image>

Environment
Release: UASIT.99000-12.5-Asset Intelligence
Component:
Attachments
1558698531036000050796_sktwi1f5rjvs16oai.gif
get_app
1558698529193000050796_sktwi1f5rjvs16oah.gif
get_app
1558698527451000050796_sktwi1f5rjvs16oag.gif
get_app
1558698525769000050796_sktwi1f5rjvs16oaf.gif
get_app
1558698523922000050796_sktwi1f5rjvs16oae.gif
get_app
1558698522317000050796_sktwi1f5rjvs16oad.gif
get_app
1558698520709000050796_sktwi1f5rjvs16oac.gif
get_app
1558698518908000050796_sktwi1f5rjvs16oab.gif
get_app
1558698517152000050796_sktwi1f5rjvs16oaa.gif
get_app
1558698515384000050796_sktwi1f5rjvs16oa9.gif
get_app
1558698513485000050796_sktwi1f5rjvs16oa8.gif
get_app
Feedback