- Installation,Storage,and Compute with Windows Server 2016:Microsoft 70-740 MCSA Exam Guide
- Sasha Kranjac Vladimir Stefanovic
- 296字
- 2021-08-20 10:03:44
Mounting images
Before you can edit, change, or update an image, you have to mount an image first. Mounting an image connects it to a folder where, once the image is mounted, you can service the image, which means that you can add features or update drivers. A WIM file can contain multiple operating system images, but you can mount only one image in a file at a time. Each operating system image has its own identifier, which is a number that you refer to when mounting an image. If, for example, a Windows Server 2018 ISO file is extracted to a folder called c:\en_windows_server_2016_x64, the install.wim image is located in the \sources subfolder, and you can list the operating files it contains using one of the following commands:
DISM.exe /get-imageinfo /imagefile:c:\en_windows_server_2016_x64\sources\install.wim
Or, alternatively, the following command:
DISM.exe /get-wiminfo /wimfile:c:\en_windows_server_2016_x64\sources\install.wim
Alternatively, you can use PowerShell:
Get-WindowsImage -ImagePath c:\en_windows_server_2016_x64\sources\install.wim
These three commands produce the same result. The following screenshot shows the output of the dism.exe command:

The following screenshot shows the output of the PowerShell command:

Note the Index field in the dism.exe output and the ImageIndex field in the PowerShell output and their values. Each operating system installation has it own unique identifier or index entry. The Windows Server 2016 Standard installation has index entry 1, the Windows Server 2016 Standard (Desktop Experience) installation has index entry 2, the Windows Server 2016 Datacenter installation has index entry 3, and the Windows Server 2016 Datacenter (Desktop Experience) installation has index entry 4.
Once you have identified the working Windows installation, mount it using the following commands:
DISM.exe /mount-image /imagefile:c:\en_windows_server_2016_x64\sources\install.wim /index:4 /mountdir:c:\mount
Alternatively, you can use the PowerShell alternative:
Mount-WindowsImage -ImagePath c:\en_windows_server_2016_x64\sources\install.wim -Index 4 -Path c:\mount
- 基于LabWindows/CVI的虛擬儀器設(shè)計(jì)與應(yīng)用
- R Machine Learning By Example
- Learning Apache Spark 2
- 群體智能與數(shù)據(jù)挖掘
- STM32嵌入式微控制器快速上手
- AutoCAD 2012中文版繪圖設(shè)計(jì)高手速成
- 嵌入式操作系統(tǒng)
- PVCBOT機(jī)器人控制技術(shù)入門
- 突破,Objective-C開發(fā)速學(xué)手冊(cè)
- Spatial Analytics with ArcGIS
- Apache源代碼全景分析(第1卷):體系結(jié)構(gòu)與核心模塊
- 數(shù)字多媒體技術(shù)與應(yīng)用實(shí)例
- Flash CS5二維動(dòng)畫設(shè)計(jì)與制作
- Mastercam X5應(yīng)用技能基本功特訓(xùn)
- Flash CS3動(dòng)畫制作融會(huì)貫通