Unattend.xml to Sysprep your Image and not disable local Administrator

Unattend.xml to Sysprep your Image and not disable local Administrator

Tools needed

  • Windows system Image Manager “This is part of the WAIK installs”
  • Windows 7 Install.wim, Boot.wim (Found on your windows 7 installation media in the Sources folder)

Note: copy these files locally and remove the “Read-Only” Attribute from each .WIM

Building your answer file using Windows (SIM)

Be sure to open this application by using the “run as administrator” option

    1. Open the “Install.WIM” using the “File and Select windows” option within Windows (SIM) Figure 1

Note: This step may take a bit to mount this image file (You will be prompted for the Windows version you want to build the file for… Once complete you will see the Components and Packages retrieved from the WIM file.

Figure 1

    1. Next you will need to open a “New Answer File” Under file option in figure 1 and add the following components in the order shown
      1. Generalize
        1. Add amd64_Microsoft-Windows-Security-SPP_6.1.7600.16385_neutral – right click and add to Pass 3 Generalize
          1. Change Setting to SkipRearm to value 8 Pix 2 (1)
      2. Specialize
        1. Right click and Add amd64_Microsoft-Windows-Deployment_6.1.7600.16385_neutral – right click and add -RunSynchronous- pass 4 Specialize
          1. Change the following settings to reflect the Screen ShotPix 3 (1)
        2. Next add SkipAutoActivaction using – Right click and add pass 4 Specialize- amd64_Microsoft-Windows-Security-SPP-UX_6.1.7600.16385_neutral
          1. Change the following setting – SkipAutoActivation to the value TruePix 4 (1)
        3. Next add amd64_Microsoft-Windows-Shell-Setup_6.1.7600.16385_neutral – click and add pass 4 Specialize (Note you can remove the sub components that are not needed)
          1. Change for the following settings to reflectPix 5 (1)
            1. (Please view TimeZone settings hereNote:later we will input License names etc into a different component
      3. oobeSystem
        1. Right click and Add Pass 7 oobeSystem – amd64_Microsoft-Windows-International-Core_6.1.7600.16385_neutral
          1. Fill in en-us in the ones in picturePix 6 (1)
        2. Right click and Add Pass 7 oobeSystem – amd64_Microsoft-Windows-Shell-Setup_6.1.7600.16385_neutral
          1. Fill in the following with your InformationPix 7 (1)
          2. AutoLogon Section
            1. Enter the followingPix 8
          3. Password Section
            1. Enter your PasswordPix 9
          4. FirstLogonCommands
            1. Right click and add new Synchronous commandsPix 10
            2. Right click and add new Synchronous commandsPix 11
              1. You will now have the following under “FirstLogonCommands”Pix 12
          5. OOBE
            1. Next Select OOBE and adjust the followingPix 13
          6. UserAccountsPix 14
            1. AdministratorPassword
              1. Add the value you want the password to be My example shows Password123!Pix 15
            2. This time we will right click Local account and (Insert New Local Account)Pix 16
              1. Fill in the unique values you needPix 17
            3. Your tree in the end should look like the following ScreenShot if you added what I’ve discussed above

Pix 18

Finally Validate your Answer file from a option under “Tools” and Save your Answerfile naming it unattend.xml for testing

  1. Once you have everything configured correctly, Copy or move your unattend.xml file to : C:windowssystem32sysprep
    1. To test open your command Prompt as an “Administrator” and change to the directory path above. Execute the following command sysprep /generalize /oobe /unattend:unattend.xml /shutdown
    2. Once your machine is turned back on it will go through the boot up process with a Sysprep that will prompt you to ONLY change the computer name. It will then Auto-login as the Administrator account so you can proceed with your final steps.

Summary

This walk-thru guides you through steps to do the following

  • Enable Administrator Account with a specific Password
  • Insert you Volume License
  • Name your Computer
  • Remove the need for a multi-part interaction

For assistance with your project, please see our pages for Microsoft System Imaging.