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:\test\images\install.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