Windows deployment -- dism command tool (1)

Source: Internet
Author: User

Microsoft launched the new packaging tool dism in Windows 7. The Common commands are as follows:

1. dism/get-wiminfo: Get Windows Image Information
The Windows 7/2008 image encapsulates all versions of the current system. Before you are familiar with the system, you must first determine the version to install, for example, to obtain the installation version of Windows 7 and the index number corresponding to each version in the optical drive, Run "dism/get-wiminfo/wimfile: F: sources/install. wim "command (the red part is the image path). After the command is executed, the following interface is displayed:

2. dism/Mount-Wim: mount a Windows Image
To load the ultimate version in the Windows 7 image to the ultimate version directory of drive D, Run "dism/Mount-Wim/wimfile: F:/sources/install. wim/index: 5/mountdi
R: D:/ultimate/readonly "; where:" F:/sources/install. 5 In Wim "Windows 7 image directory," index: 5 "indicates the index value corresponding to the ultimate version viewed using the command," D: /ultimate "is the directory mounted to the hard disk and must exist in disk D. If you directly load a Windows image from the disc, the image is read-only. Therefore, you must add a parameter:ReadonlyIf you want to copy a Windows Image to a hard disk and set the attribute to writable, you can remove the readonly parameter;

3. dism/get-mountedwiminfo: Get the information of the mounted Windows Image
Which images are loaded in the query system and their information can be obtained using "dism/get-mountedwiminfo"

4. dism/image: operate windows Images
To operate the image, you must ensure that the image is writable. in step 2, you cannot directly mount the disc image. You must install the image. copy Wim to the hard disk and mount it again. Do not use the readonly parameter when mounting the Wim. The most common operation for an image is to add a device driver to a Windows Image, for example, if you want to add a NIC driver to the image, run: "dism/image: D:/ultimate/Add-Driver/driver: D:/Drivers/b44win. INF "where D:/ultimate is the directory of the mounted image, D:/Drivers/b44win. INF is the path of the driver;

We can also perform other operations on the image: adding language packs, programs, etc;
5. dism/unmount-Wim: saves and uninstalls windows images.
Save and uninstall the modified image. Run the following command: "dism/unmount-Wim/mountdir: D:/ultimate/commit" where D: /ultimate is the directory of the mounted image, and commit indicates to save the modification. If you do not want to save the modification and only want to uninstall the image, you can change the commit parameter to discard;

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.