How to add a Product Key to windows 7 OS Images.

Document ID : KB000050796
Last Modified Date : 14/02/2018
Show Technical Document Details

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>

    Figure 1

  • 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$

    Figure 2

  • 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

    Figure 3

    Any OS image created with the IMAGEX-WIN7 template will now include the Product Key Parameter.

Modifying the Image

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

      Figure 4

    • 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$

      Figure 5

    • 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

      Figure 6

  2. Update the Image

  3. Go under the following location on the ITCM Console

    Figure 7

  4. Select the image modified in step 1and go through wizard selecting the following options

    Figure 8

    Figure 9

  5. Allow the update to complete

    Figure 10

    The product ID parameter is now available to select in the OS Image

    Figure 11