A recent email from a former student asked, “ Is it possible to have you show me how to capture an image using Imagex?”
My first thought was ‘Happy to aim you in the proper direction’. This is easy – wait – imageX is deprecated in Windows 8/8.1. DISM serves as the replacement tool in Windows 8/8.1. Technet documentation may be hard to follow. The entire process requires two or more days of a weeklong Windows 7 or Windows 8 deployment course to teach in detail. While the overall process is rather simple, each step enables alternatives that can make the process appear far more complex. I describe each piece in my Windows 7 Enterprise Deployment video series and provide updates in the Introduction subset of my Windows 8 Installation and Management videos. Microsoft also has a 2 minute overview video Preparing an Image Using Sysprep and ImageX. Lots of details to sort.
Just built my computer with Windows 8.1 Pro and I want to make an image of it. With Windows 7 I used a bootable USB with Imagex installed, works fine. I just tried the same procedure with Windows 8.1 and once I started the command I just get a ton of messages scrolling on the screen, going too fast to read. Install Windows Assessment and Deployment Kit (Windows ADK). Click Start, and type deployment. Right-click Deployment and Imaging Tools Environment and then select Run as administrator. In the Deployment Tools and Imaging Environment, copy the Windows PE files for the PCs you want to boot copype amd64 C: WinPEamd64; Mount the Windows PE image. O Copy Imagex.exe from C: Program Files (x86) Windows Kits 8.1 Assessment and Deployment Kit Deployment Tools x86 DISM or C: Program Files Windows Kits 8.1 Assessment and Deployment Kit Deployment Tools x86 DISM. O Try booting Windows PE from a DVD instead. Create an ISO file that you can burn onto a DVD. By using Windows AIK, you can automate Windows installations, capture Windows images with ImageX, configure and modify images using Deployment Imaging Servicing and Management (DISM), create Windows PE images, and migrate user profiles and data with the User State Migration Tool (USMT).
Despite all the details, one can actually perform the entire capture process in about 30 minutes, if a couple of the steps are conducted simultaneously.
For the sake of simplicity, let me set the stage. Let’s eliminate some of the alternatives.
The OS has current patches, drivers, and desired applications installed. It may also be network and domain attached. One or more user accounts may also be presented and configured. In other words, the system you plan to capture has all of the desired components installed and operational. (Microsoft documentation calls this a reference system.)
You could use the System Image Manager (SIM) to create an ‘answer file’(typically named unattend.xml) or modify the .wim File Exclusion list to alter the image content during capture or deployment. You aren’t making any changes to your image during capture, so you avoid this step and use of the related tool(s).
You are not adding or appending information to an existing .wim file, or creating a differencing file. You don’t need to be concerned with numbering or naming of existing .wim indexed images, or overwriting, auditing, or confirming changes to an existing image. Since you are creating a single, unique image, you may use default options for numbering and labeling.
You could use the following process to capture an entire image, including security identifiers, MAC, host name, user data, temporary files and other unique information by skipping the Sysprep step. The captured image could not be multiply deployed without being modified first, but you could deploy it to a Virtual image for diagnostic purposes. The capture steps are the same, but the deployment steps would be very different and might influence configuration switches that you use during capture.
Once you run Sysprep, the system will be generalized for capture and deployment. Minimally, basic installation and configuration questions will have to be answered once the captured system is rebooted before it can be used again in a production environment. Several manual or automated processes, not included in this blog would be necessary to capture system information, if you want to place it directly back into production after image capture.
You need the WAIK or the ADK installed on a system to get current copies of CopyPE, ImageX or DISM for image capture. These need to be installed on a technician’s system, and NOT on the system to be captured. You really don’t want all the WAIK or ADK content taking up space in your captured .wim file.
The WAIK and ADK tools within the suites are often specific to the BIOS platform, for instance Amd64, x86, arm. You need to be sure to use the correct tools or switches for compatibility with your target system(s).
Getting ready to capture that system image. Gather a set of DVD’s or an NTFS configured USB drive. Make sure you have identified a storage repository with 30-60 GB storage minimum for the captured .wim file.
The high level process outline looks like the following:
1. Identify or select the system from which you want to capture a Windows Operating System image.
Run C:WindowsSystem32SysprepSysprep.exe and select the generalize and shutdown options.
(Detailed Sysprep information)
2. Create Pre-Execution bootable media using the COPYPE command on the technician PC (with WAIK or ADK).
Copype amd64 c:winpe64
(Note: x86 or alternate switches might be needed if target is not a 64 bit system, and I selected the folder name to easily identify this as a Windows 64 PE image.)
Copy Imagex.exe from within the WAIK or ADK directory …toolsamd64imagex.exe to c:winpe64iso
Copy other tools that you want on your PE media to the same folder.
Oscdimg –n bC:winpeisoetfsboot.com c:winpe64iso c:winpe64winpe.iso
Burn the winpe.iso image to bootable DVD or USB media using your preferred burning tool.
(I wrote a prior blog offering simplified media creation alternatives … Simplify your Windows 8 Evaluation install)
3. Boot the system with the OS to be captured using the newly created PE media.
4. Prepare the media location to which the image will be captured.
5. Run ImageX with the capture command
Choose your own .wim file name, and provide an internal index name that you can easily identify later.
That’s the simple process.
With Windows 8/8.1 and the ADK, you simple substitute DISM for ImageX, and the process works identically.
For those who have taken our 20687C/D course, the digital copy of the Microsoft Official Curriculum through Skillpipe offers DISM related examples within Module 2, Lesson 3 – Customizing and Preparing a Windows 8.1 image for deployment.
Good luck!
Hope to see you in the classroom, or online.
Steven Fullmer
Interface Technical Training Staff Instructor
ADK, Assessment and Deployment Kit, CopyPe, DISM, Image management, ImageX, OSCDImg, Sysrep, WAIK, WIM, Windows 7, Windows 8, Windows 8.1, Windows Automated Installation Kit, Windows Image