Intro: Preparing a Hardware Independent Windows 7 Image
- A spare computer or a virtual machine
Another computer that can be used to assist with the imaging process
(It will be helpful to have Windows 7 installed on it as well)
A copy of Windows 7 Enterprise
(We are using a KMS Licensing Server on campus instead of product keys, however each setup may be different)
- Any additional software that may be required in the image
A copy of an imaging software
(I personally use FSArchiver, however Norton Ghost or Acronis are also good choices)
- Internet access
- A blank DVD and a DVD burner
If using a spare computer make sure that the processor is an AMD or that Intel machines are the only computers that will be restored to in the future. For some reason Intel's processor driver is incompatible with AMD machines but not vice versa. Also, if using a virtual machine, make sure to run it on a computer that's powerful enough to run both the original operating system as well as the virtual machine.
Step 1: Install Windows
To install Windows 7, insert the windows disc into the computer or mount the virtual disc image if using a virtual machine. Then, press any key to start up off of the Windows disc when prompted. After that, follow the image notes for a more detailed description of each of the settings. Once you get to the username dialog box, after the reboot, press ctrl-shift-f3 to enter audit mode.
Step 2: Install the Windows Automated Installation Kit (WAIK)
- Download the KB3AIK_EN.iso file from this link.
- Double click the ISO file to open the Windows Disc Image Burner
- Select the drive to burn to
- Choose whether or not to verify the disc
- Choose burn to start the burn process
- Re-insert the disc after it is done burning
- Click Run StartCD.exe from the AutoPlay options
- Click Windows AIK Setup from the setup splash screen
- Follow the installer through by clicking next until the end and then click finish
Step 3: Prepare the Sysprep Settings File
- Copy the install_Windows 7 ENTERPRISE.clg file from the Sources folder on the Windows 7 installation disc to somewhere that it can be found easily.
- Open the Windows System Image Manager from the Microsoft Windows AIK start menu folder that was created when WAIK was installed.
- Click the new answer file icon at the top of the System Image Manager.
- Click yes to when it asks to open a windows image.
- Drag the items below from the Windows image components section on the lower left of the Windows System Image Manager onto the corresponding steps in the center top answer file section.
- Set the correct information for each component's sub settings in the component properties section referring to the sample unattend.xml below. For the synchronous commands in steps 3 and 7 simply right click on the section that it goes in and click Insert New SynchronousCommand.
- Click file, save answer file as, and choose a place to save the file as unattend.xml.
- Open the unattend.xml file in Notepad and make sure the ComputerName opening and closing tags line is removed in order to have setup prompt for a computer name after imaging.
Sample unattend.xml settings:
Path=net user administrator /active:yes
Path=net accounts /maxpwage:unlimited
CommandLine=(Anything needing to be run after setup is done. We run a hardware inventory application called OCS Inventory)
Description=(User friendly name of the application)
RequiresUserInput=(True if application needs user input)
(Fill in the other fields with organization's information)
Step 4: Install Programs & Customize Settings
Step 5: Sysprep the Machine
- Copy the unattend.xml file that was created in step 3 into the %WinDir%\system32\sysprep folder.
- Open a command prompt as the administrator. Do this by opening the start menu, clicking all programs, clicking the accessories folder, right clicking on the command prompt, and clicking run as administrator.
- Run the command "C:\Windows\System32\Sysprep\Sysprep.exe /generalize /oobe /shutdown /unattend:unattend.xml" in the command prompt.
An image should only be sysprepped once. Be sure to take a virtual machine snapshot or image the computer before sysprepping if later changes are necessary.
Step 6: Pull the Image
Now, transfer the image from the hard drive to a file with an imaging software. This is called: "pulling the image." There is a wide variety of software that this can be done with, and each has it's own way of accomplishing the process. Read the documentation for the specific imaging software being used, and pull the image from the hard drive to a file.
Step 7: Push the Image
Now that the image has been pulled from the hard drive, it can be "pushed," or in other words restored, onto additional hard drives provided that there are enough Windows 7 licenses. Also, be sure to check the imaging software's licensing requirements as some require additional licenses for each machine that the image is pushed onto. Please read the imaging software's documentation for help if additional support is required with this process.
Step 8: Conclusion
If this process is followed through, it can save untold amounts of time usually spent setting up computers. This also ensures that all computers maintain the same settings and applications throughout the organization.