Windows 7 Deployment Tools DISM Instance

Source: Internet
Author: User
Tags versions

As you know, Windows Vista uses a wrapper tool that is ImageX, and the associated. wim file is the new image standard. As it is, the same image format, Microsoft launched a new packaging tool--dism in Windows 7. This tool is unfamiliar to most users, and this article will enumerate a few examples of the application of the DISM tool and experience this new image deployment tool.

1. Get DISM Command parameters

DISM has a number of command parameters that apply to different application requirements. Execute DISM/? On the command line of Windows 7. can get its command parameters, for easy viewing we can add the channel symbol after the command "DISM/? | More "displays its command parameters as pagination. One of our most common parameters is "/mount-win", "/unmount-win", "/remount-win", which is the role of the hook image, unload the image, remove the image directory. In addition, "/get-mountedwininfo" and "/get-wininfo" are information about the loaded image and the image file, which is important for image deployment. Of course, DISM has other, more complex parameters. You can understand the role of the following description, I do not enumerate, we started an example demo. (Figure 1)

Figure 1 DISM Command parameters

2. Get DISM Image information

We know that Windows 7 (Windows Vista is also) has an image that encapsulates all versions of the current system, first to determine which version is installed prior to system deployment, because the key you purchased can only be applied to a version, so getting the encapsulated information for the image is necessary. Perform "Dism/get-wininfo/wimfile:c:testimagesinstall.wim" at the command line. It is important to note that the above command/get-wininfo is the key parameter, which is to obtain the encapsulated information of the image;/WimFile: The path to the image file is followed by the parameter. After the command is executed, we can see that there are 4 system versions encapsulated in the system image, namely Homebasic (Home normal edition), Homepremive (Home Advanced edition), BUSINESS (Commercial edition), Ultimate (flagship edition). At the same time, we can see the size of each version. (Figure 2)

Figure 2 Getting the DISM image information

3. Mount DISM image

After we get the encapsulated information for the image, we can mount a system version encapsulated in the image into the disk directory. For example, if we load the ultimate version encapsulated in the image package into c:testservicing, we can execute the command "Dism/mount-win/wimfile:c:testimagesinstall.wim/index:4/ Mountdir:c:testservicing ". Where/mount-win is a key parameter that represents the mount of the image,/WimFile: The path to the image file, and the/index:4 parameter represents the fourth package in the packaged package that is Ultimate;/mountdir: The directory that the system image mounts later. During command execution, the process of image loading is displayed as a percentage. (Figure 3)

Figure 3 Loading the DISM image

4. Get Mount DISM image information

After the system image mount is completed for verification, or we need to query which images are loaded in the system, we can execute the command "dism/get-m

Ountedwiminfo "for acquisition. As shown in the picture, the results of the command execution show that the system image is loaded with c:testservicing, the image file is c:testimagesinstall.wim, the image sequence is 4, the image directory read-write permission is readable and writable, and the state is OK, which is normal. This information indicates that the image we just had was loaded successfully, and only one system image was loaded on the current disk. At the same time we can go into the c:testservicing directory to view the system just loaded, execute the command "dir c:testservicing" at the command line to list the system image information that is loaded in that directory. Include all system files and system directories, as shown in the figure. If we want to boot the system, we can add the project by modifying the system boot file. (Figure 4)

Figure 4 Obtaining the Mount DISM image information

5. Operation of Mount system image to DISM

With the above operation we deployed a system image on disk, so how do we operate on the system image? DISM provides the/image and/online parameters, which are followed by the corresponding actions with the other parameters. The action to get the/image parameter can be executed at the command line dism/image:c:testservicing/? | More ", so that the relevant parameters will be paginated. For example, we execute the command "dism/image:c:testservicing/get-drivers" to get drive information for the target system image. Executes the command "Dism/image:c:testservicing/add-driver/driver:c:testdriversux6000vx60000.inf" to add a new drive to the target system image. Once the installation is complete we can again execute the command "dism/image:c:testservicing/get-drivers" To view the driver information and see the drive information just added. (Figure 5)

Figure 5 Operation for DISM Mount system image

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.