Microsoft KB Archive/936922

= How to edit a Windows Imaging Format file on a Windows Server 2003 Service Pack 1 (SP1)-based computer that is running Windows Deployment Services =

Article ID: 936922

Article Last Modified on 10/31/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition

-



INTRODUCTION
This article describes how to edit a Windows Imaging Format (WIM) file on a Microsoft Windows Server 2003 Service Pack 1 (SP1)-based computer that is running Windows Deployment Services (WDS).



MORE INFORMATION
The following files are associated with the operating system images that are captured by using WDS:
 * Res.rwm

This file contains the file streams that are associated with the images. Each image group has an associated Res.rwm file.
 *  .wim

This file contains the image metadata that describes the files, the folders, and the permission structures that make up the image.

The actual file resources for the image reside in the Res.rwm file. The .rwm file is a .wim file. The extension .rwm (Resource WIM) is used to do the following:
 * Differentiate the resource-only .wim file from the metadata.
 * Speed up the image enumeration process. Because image enumeration works only on .wim files, the Res.rwm file is not used. The data in the Res.rwm file and in the .wim file is single-instanced and compressed.

By default, an image group that is named &quot;ImageGroup1&quot; is created when you upload the first image to the WDS server.

To edit the .wim file, follow these steps:  Click Start, point to All Programs, click Administrative Tools, and then click Windows Deployment Services. In the WDS Management Console, right-click the image that you want to change, and then click Disable.

Note When you disable the image, new clients cannot view the image, and the image is not enumerated by any clients. Existing clients that are already installing the image can continue to install the image. However, you cannot replace the image until all existing installations are completed. Right-click the image, and then click Export to export the image to a single .wim file. In the Export As dialog box, specify a location for the single .wim file. Click Start, point to All Programs, click Microsoft Windows AIK, and then click Windows PE Tools Command Prompt.

Note For more information about how to create the Windows Preinstallation Environment (Windows PE) build environment, see the &quot;Windows PE Build Environment&quot; section in The Windows Preinstallation Environment (Windows PE) User's Guide. At the command prompt, type the following command to create the Windows PE build environment:

copype.cmd x86

Note  is the folder to which you want to extract the image.

This command creates a build environment in the folder that you specify. The command also updates the build path to include the path of the following tools:  Peimg.exe</li> Oscdimg.exe</li> Imagex.exe</li></ul> </li> At the command prompt, type the following command to mount the exported image:

imagex /mountrw

Note To change the .wim image file, you must have Mounting Read and Write (mountrw) permissions for the mounted image.</li> After the image is successfully mounted, you can make the changes that you want. For example, you can add, remove, or replace any files that exist in the mounted image.</li> After you have made changes, you must unmount the image, and then you must commit the changes. To do this, type the following command at the command prompt:

ImageX /unmount /commit

</li> In the WDS Management Console, select one of the following options: <ol style="list-style-type: lower-alpha;"> Right-click the image, and then click Replace to replace the existing image with the updated copy.</li> Right-click the image group, and then click Add to add the image as a new image.</li></ol> </li></ol>

Note To free disk space, you can safely delete the extracted image that resides in the  folder after you complete these steps.

Keywords: kbhowto kbinfo kbprb kbexpertiseinter KB936922

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.