Automating Windows 7 Installation : Creating Your First Image, Using the Windows Automated Installation Kit

10/27/2013 7:40:35 PM

1. Creating Your First Image

When imaging computers, you'll have different computers that you'll work with, as you can see in Figure 1.

You'll install tools such as the WAIK on the technician's computer, and you can then manipulate images and image files from that computer. The reference computer starts as a clean installation of Windows 7, and you make any configuration changes or add applications as desired. Once the reference computer is ready, you run Sysprep on the reference computer and capture the image. You can then deploy this image to the destination computers.

Because of a quirk, you need to consider the architecture of the target computers when choosing your technician's computer. Specifically, WSIM fails to create catalogs for an x86-based image if you run it from an x64-based computer. WSIM can create catalogs from both x86- and x64-based images on an x86-based computer, though.

Figure 1. Technician's, reference, and destination computers

Here are the high-level steps you'll take to manually capture an image:

  1. Install the Windows Automated Installation Kit. You install it on a computer you're using for administrative purposes. In other words, don't install it on the computer you are imaging. The WAIK includes several tools you'll use during this process.

  2. Create bootable media that includes ImageX. You can create either a bootable CD or bootable USB drive to boot into WinPE. You add the ImageX program before creating the bootable media so that it is available to you when you boot into WinPE.

  3. Configure the reference computer. Install a clean installation of Windows 7 and configure it for your end users. You can configure any settings you want as well as install any applications you want your end users to have available to them when they receive the image.

  4. Prepare the reference computer with Sysprep. The computer must be prepared with Sysprep. Sysprep will generalize any settings that must be generalized, such as the computer name, SID, and removal of the license key. Once Sysprep completes, the computer shuts down and should not be restarted normally until after the image is captured.

  5. Boot to WinPE with your bootable media. Boot the reference computer to the WinPE. You can boot into the WinPE using multiple methods, including using bootable media you've created.

  6. Capture the image with ImageX. After booting into WinPE, you can access the command prompt to capture the image using the ImageX command. You can then store the image on any media that will be accessible to the destination computers.

2. Using the Windows Automated Installation Kit

The Windows Automated Installation Kit (WAIK) is a group of tools you can use on the technician's computer to help with the deployment of Windows 7.

These tools include the following:

Deployment Tools Command Prompt

You can use this prompt to run commands such as dism, oscdimg, and imagex. When you launch it, the prompt temporarily modifies the path to include the path to these tools and starts in the C:\Program Fi1es\Windows AIK\Too1s\PETools folder.

Windows System Image Manager

You can use this tool to create answer files. 

Documentation Folder

The Documentation folder includes access to several links. It includes a link to an HTML file that includes step-by-step instructions, links to three separate help files, and an additional folder named SDK (Software Deployment Kit) for software developers.

VAMT 1.2 Folder

This folder includes Volume Activation Management Tool (VAMT) version 1.2 help files and tools, which you can use for managing activation. You can also download VAMT version 2.0 as a separate download.

You can use these tools to capture or deploy an image, and perform offline maintenance of images. Offline maintenance means that you aren't booted into the operating system; instead, you are modifying the contents of the WIM file. You can use the WAIK tools to expand the contents of a WIM file into files and folders on the technician's computer. You can modify the files and folders as desired, and then restore them into the image.

The WAIK is available as a free download from Microsoft. You can get it by going to Microsoft's download site ( and entering WAIK in the Search All Download Center text box. The Windows AIK for Windows 7 download (KB3AIK_EN.iso) file should be listed on the first page. It's about 1.7 GB in size so will take a little time to download even with a high-bandwidth connection.

After you download the ISO image, you can burn it to a DVD using Windows 7's built-in feature. Simply place a writable DVD into your DVD burner, right-click the ISO file, and select Burn Disc Image.

Once you have the DVD, you can use the following steps to install it:

  1. Place the DVD into your DVD drive. If Autoplay doesn't start automatically, use Windows Explorer to browse to the drive and double-click StartCD.exe. If prompted by User Account Control (UAC), click Yes to continue. You'll see a screen similar to Figure 2.

  2. Click Windows AIK Setup.

  3. When the welcome page appears, click Next.

  4. Review the license terms and select I Agree. Click Next.

  5. Accept the default installation folder of C:\Program Fi1es\Windows AIK\ and click Next.

  6. On the Confirm Installation page, click Next to start the installation.

  7. When installation completes, click Close.

  8. Click Start => All Programs => Microsoft Windows AIK. You'll see all the WAIK tools within this Start menu folder.

Figure 2. Installing the WAIK
  •  Automating Windows 7 Installation : Getting Familiar with Microsoft Images (part 2) - Creating Operating System Images
  •  Automating Windows 7 Installation : Getting Familiar with Microsoft Images (part 1) - Creating a Bootable VHD Image
  •  Windows 8 : Scheduling Maintenance Tasks - Viewing and Managing Tasks on Local and Remote Systems
  •  Windows 8 : Detecting and Resolving Windows 8 Errors - Using the Event Logs for Error Tracking and Diagnosis, Viewing and Managing the Event Logs
  •  Windows 8 : Using Remote Assistance to Resolve Problems
  •  Windows 8 : Managing Automatic Updates
  •  Windows 8 : Managing Installed and Running Programs (part 3) - Configuring AutoPlay Options, Adding and Removing Windows Features
  •  Windows 8 : Managing Installed and Running Programs (part 2) - Managing the Command Path, Managing File Extensions and File Associations
  •  Windows 8 : Managing Installed and Running Programs (part 1) - Managing Currently Running Programs, Managing, Repairing, and Uninstalling Programs, Designating Default Programs
  •  Windows 8 : Deploying Applications Through Group Policy, Configuring Program Compatibility
    Top 10
    Extending LINQ to Objects : Writing a Single Element Operator (part 2) - Building the RandomElement Operator
    Extending LINQ to Objects : Writing a Single Element Operator (part 1) - Building Our Own Last Operator
    3 Tips for Maintaining Your Cell Phone Battery (part 2) - Discharge Smart, Use Smart
    3 Tips for Maintaining Your Cell Phone Battery (part 1) - Charge Smart
    OPEL MERIVA : Making a grand entrance
    FORD MONDEO 2.0 ECOBOOST : Modern Mondeo
    BMW 650i COUPE : Sexy retooling of BMW's 6-series
    BMW 120d; M135i - Finely tuned
    PHP Tutorials : Storing Images in MySQL with PHP (part 2) - Creating the HTML, Inserting the Image into MySQL
    PHP Tutorials : Storing Images in MySQL with PHP (part 1) - Why store binary files in MySQL using PHP?
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS