Logo
HOW TO
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows 7

Automating Windows 7 Installation : Capturing an Image Using ImageX

4/15/2014 1:28:09 AM

After you've prepared your system with Sysprep, you can capture the system image using ImageX. You should have a bootable disc that includes the ImageX file.

ImageX Is Not a Backup Tool

You may be tempted to use ImageX to capture images of systems and use them as a system backup. However, it's not intended to be used this way and will result in inconsistent results. Microsoft's Knowledge Base article KB 935467 (http://support.microsoft.com/kb/935467) discusses some of the negative consequences of doing this on Windows Vista and the same issues apply with Windows 7. Additionally, using ImageX to back up systems may violate your software license agreement for Windows 7.


You use the ImageX /capture switch to capture an image. There are several options that are repeated with the /capture switch:


image_path

This is the path to the volume image to be captured. On a single-drive, single-partition system, this will be C:. If you have a dual-boot system with Windows XP on the C: drive and Windows 7 on the D: drive, then image_path will be the D: drive to capture the Windows 7 image.


image_file

This is the path to the new WIM file that will store the captured image. It includes the full path and image filename, and the folder specified in the path must exist or the capture will fail. You can name the file almost anything, but it must end with .wim.


image_name

This is the unique name for the image being captured that will be stored in the WIM file and needs to be in quotes. Later, you'll be able to use this name or the index number to identify the image within the WIM file.


image_description

This optional text provides additional information on the image. If it's included, it should be in quotes.


flags switch

Use the flags switch to specify which edition you are capturing. While it isn't needed if you're deploying the image with ImageX, it is necessary when you use other tools to deploy the image. The format is /flags "Enterprise", /flags "Professional", or / flags "Ultimate".

The basic syntax with these options looks like this:

Imagex /Capture /flags "Enterprise" image_path image_fi1e

"image_name" ["image_description"]

The drive you'll image is almost always the C: drive. However, in some instances where you have dual-boot systems, you may be imaging another drive. The folder where the image will be stored can be on any available system drive that has adequate space, including the drive that you're imaging.

As an example, the following command can be used to capture an image after booting into the WinPE:

Imagex /Capture /flags "Enterprise" c: D:\images\Win7.wim

"Mastering Windows 7"

This command will capture the C: drive and store the image in the Win7.wim file in the preexisting D:\Images folder with a name of Mastering Windows 7.

After you have prepared a Windows 7 system with Sysprep, you can use the following steps to capture an image of the system:

  1. Boot using the WinPE media you created. But be careful: make sure that you boot to the WinPE media and not directly into the Windows 7 system. If the Welcome phase starts, you'll have to rerun Sysprep before you can capture the image.

    When the WinPE boots, it will run the wpeinit program and eventually you'll see a command prompt in the X: \Windows\System32 folder after wpeinit completes. In this case, X: is the actual drive and it represents a RAM disk created by the WinPE.

  2. Enter the following two commands to create a folder named Images that will be used to store the image:

    C:
    Md Images:

  3. Identify the drive letter of your bootable media. You can do this by entering the Dir command followed by a letter and a colon like this:

    Dir C:
    Dir D:
    Dir E:

    Continue doing this until you see a directory that includes the Image.exe command, and the Boot, EFI, and Sources folders.

  4. Once you identify the drive holding the ImageX program, change to the drive by entering the letter and a colon. For example, on our system, the bootable media was the H: drive so we entered this command:

    H:

  5. Enter the following ImageX command to capture the image of the C: drive, store it in the C:\images\win7.wim file, and name it Mastering Windows 7:

    Imagex /Capture c: C:\images\Win7.wim "Mastering Windows 7"

The display will show steady progress in the format of:

[ 50% ] Capturing progress: 7:40 mins remaining

When the process completes, you'll see a message indicating that the drive has been successfully imaged, with a total elapsed time. At this point, you'll have an image file created in the location you specified. You can reboot the system and complete the Welcome phase of Windows startup.

You can view the details of the image with the following command:

Imagex /info C:\images\Win7.wim
Other -----------------
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 4) - Fine-tuning Web Pages and Battling Bugs - Saving a Visio Drawing as a Web Page
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 3) - Fine-tuning Web Pages and Battling Bugs - Customizing Web Page Output
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 2) - Exploring Visio-Generated Web Pages
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 1) - Saving as Web Page
- Microsoft Visio 2010 : Sending Visio Files in Email, Saving as PDF or XPS Files
- Microsoft Visio 2010 : Introducing Data Graphics (part 2) - Creating Data Graphics,Applying Data Graphics to Shapes
- Microsoft Visio 2010 : Introducing Data Graphics (part 1) - What Is a Data Graphic?
- Microsoft Visio 2010 : Linking External Data to Shapes (part 6) - Using Link Data - Linking Data to Shapes Using Link Data
- Microsoft Visio 2010 : Linking External Data to Shapes (part 5) - Using Link Data - Preparing a Master for Link Data , Importing Data for Link Data
- Microsoft Visio 2010 : Linking External Data to Shapes (part 4) - Using the Database Wizard - Taking the Data-Linked Light Bulb Shape for a Spin
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

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

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
 
VIDEO TUTORIAL
- 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
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
Top 10
- Microsoft Excel : How to Use the VLookUp Function
- Fix and Tweak Graphics and Video (part 3) : How to Fix : My Screen Is Sluggish - Adjust Hardware Acceleration
- Fix and Tweak Graphics and Video (part 2) : How to Fix : Text on My Screen Is Too Small
- Fix and Tweak Graphics and Video (part 1) : How to Fix : Adjust the Resolution
- Windows Phone 8 Apps : Camera (part 4) - Adjusting Video Settings, Using the Video Light
- Windows Phone 8 Apps : Camera (part 3) - Using the Front Camera, Activating Video Mode
- Windows Phone 8 Apps : Camera (part 2) - Controlling the Camera’s Flash, Changing the Camera’s Behavior with Lenses
- Windows Phone 8 Apps : Camera (part 1) - Adjusting Photo Settings
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro