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).
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.
Image_Name.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 Image_name.wim file is single-instanced and compressed.
By default, an image group that is named "ImageGroup1" is created when you upload the first image to the WDS server.
To edit the Image_Name.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 "Windows PE Build Environment" 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 destination_folder_name
Note destination_folder_name 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:
At the command prompt, type the following command to mount the exported image: