Export (0) Print
Expand All

Mount and Modify an Image

Published: October 22, 2009

Updated: October 22, 2009

Applies To: Windows 7, Windows Server 2008 R2

noteNote
This content applies to Windows 7. For Windows 8 content, see Windows Deployment with the Windows ADK.

Using the ImageX tool, the Windows® Imaging File System Filter (WIMMount Filter), and a Windows image (.wim) file, you can map the contents of the image to a directory and perform common file operations, such as copying, pasting, and editing with a file management tool, such as Windows Explorer, without extracting or recreating the image.

In addition, the WIM FS Filter driver (Wimmount.sys) enables you to mount your image with read-only or read/write permissions, and to view the included files and folders from a file-management tool such as Windows Explorer. You can mount and modify up to 20 images. By default, the WIM FS Filter is installed by the Windows OEM Preinstallation Kit (Windows OPK) Setup and the Windows Automated Installation Kit (Windows AIK) Setup.

Prerequisites

Before you can mount and manipulate an image using the ImageX tool, you must perform the following tasks:

  1. Install Windows OPK tools or Windows AIK tools on your technician computer.

  2. Use the ImageX tool to capture (and, optionally, to compress) your installation to a.wim file.

Mounting an Image

You may mount your image with read-only or read/write permissions to a directory on your technician computer. If you mount an image with read-only permission, you will be unable to modify the image and to save any changes.

To mount an image

  1. At a command prompt on your technician computer, open the ImageX directory.

    C:\Program Files\<version>\Tools\<architecture>
    
    where <version> can be Windows OPK or Windows AIK, and <architecture> can be x86, amd64, or ia64.

  2. Mount the image. For read-only permissions, type

    imagex /mount D:\imaging\data.wim 2 C:\mounted_images
    
    For read/write permissions, type

    imagex /mountrw D:\imaging\data.wim 2 C:\mounted_images
    
    where C:\mounted_images is the location of the mount directory, D:\imaging\data.wim is the name and the location of the .wim file to mount, and 2 is the reference number of the specific volume in the .wim file.

Modifying an Image

After you mount an image, the directory structure becomes available from a file-management tool, such as Windows Explorer. From the file-management tool, you can review your file and folder structure and add, edit, or delete files and folders.

To view files and folders

  1. On your technician computer, start Windows Explorer, and then open the mounted directory. For example,

    C:\mounted_images
    
  2. Review the file and folder structure, including content.

To add files or folders

  1. On your technician computer, start Windows Explorer, and then open the mounted directory. For example,

    C:\mounted_images
    
  2. Add additional files and folders to the location where they must appear after they have been applied to the destination computer. For example,

    C:\program_files\application_name
    
    ImportantImportant
    If you must add an application or a device, verify that you included all of the required files. Although you can add application files and folders, you cannot install applications.

To edit files or folders

  1. On your technician computer, start Windows Explorer, and then open the mounted directory. For example,

    C:\mounted_images
    
  2. Edit the files and the folders. Move the files and the folders within your image, or open the files and view their contents.

To delete files or folders

  1. On your technician computer, start Windows Explorer, and then open the mounted directory. For example,

    C:\mounted_images
    
  2. To delete a file or a folder, press SHIFT+DELETE.

    noteNote
    You cannot delete an entire .wim file. However, you can delete all of the files contained within the image. The DELETE key alone will not delete any files or folders.

Unmounting an Image

After you modify an image, you must unmount it. If you mounted your image with read/write permissions, you can commit your changes. This makes your modifications a permanent part of the image.

To unmount an image

  1. On your technician computer, at a command prompt, open the ImageX directory.

    C:\Program Files\<version>\Tools\<architecture>
    
    where <version> can be Windows OPK or Windows AIK, and <architecture> can be x86, amd64, or ia64.

  2. Unmount the image.

    imagex /unmount /commit C:\mounted_images
    
    where C:\mounted_images is the location of the mount directory. If you do not specify the parameters to unmount, this option lists all of the mounted images but does not perform the unmount action.

    ImportantImportant
    If you use the /unmount option without the /commit option, your changes will be discarded. To save your changes, you must mount the image by using the /mountrw option and the /commit option when unmounting the image.

After modifying an image, you can apply the image from a network share or from local media, such as a CD/DVD or a USB flash drive (UFD).

To manipulate images on a computer that does not have the Windows OPK or the Windows AIK installed, you must copy ImageX.exe, Wimmount.sys, Wimmount.inf and Wimserv.exe to the new computer. You must then install of the driver by right-clicking the Wimmount.inf file and then clicking Install. You must also add Wimserv.exe to your local path (\Windows\System32).

ImportantImportant
You cannot run multiple versions of WIM FS Filter on the same computer. You must uninstall any previous versions.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft