You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docset/winserver2022-ps/dism/DISM.md
+37-12
Original file line number
Diff line number
Diff line change
@@ -6,34 +6,58 @@ Help Version: 5.0.1.1
6
6
Locale: en-US
7
7
manager: jasgro
8
8
Module Guid: 389c464d-8b8d-48e9-aafe-6d8a590d6798
9
-
Module Name: System.Object[]
9
+
Module Name: DISM
10
10
ms.author: v-anbarr
11
11
ms.date: 12/21/2016
12
12
ms.mktglfcycl: manage
13
13
ms.prod: w10
14
-
ms.reviewer:
14
+
ms.reviewer:
15
15
ms.sitesec: library
16
16
ms.technology: powershell-windows
17
17
ms.topic: reference
18
18
title: DISM
19
19
---
20
20
21
21
# DISM Module
22
-
## Description
23
-
The Deployment Image Servicing and Management (DISM) platform is used to mount and service Windows images before deployment. A subset of DISM commands can be used on online Windows images. You can use DISM tools to mount, and get information about, Windows image (.wim) files or virtual hard disks (.vhd or .vhdx). You can also use it to install, uninstall, configure, and update Windows features, packages, and drivers in a Windows image or to change the edition of a Windows image.
24
-
25
-
This topic introduces the DISM cmdlets available in the DISM PowerShell module. This module is available in Windows 8.1 and Windows Server 2012 R2. On other supported operating systems, you can install the DISM module from the [Windows Assessment and Deployment Kit (Windows ADK)](https://go.microsoft.com/fwlink/?LinkId=206587). For more information about how to use the DISM PowerShell module installed with the ADK, see [How to Use DISM in Windows PowerShell](https://go.microsoft.com/fwlink/?LinkId=239927).
26
-
27
-
For Windows 8.1 and Windows Server 2012 R2, Windows PowerShell 4.0 is included in the installation. For other supported versions of Windows and Windows Server, (including Windows 8, Windows 7 SP1, Windows Server 2012, and Windows Server 2008 R2 SP1), you must install Windows Management Framework 4.0. You can download and install [Windows Management Framework 4.0](https://go.microsoft.com/fwlink/?LinkId=293881) from the Microsoft Download Center.
28
22
29
-
The DISM platform also includes a command-line tool, DISM.exe, and the [DISM API](https://go.microsoft.com/fwlink/?LinkID=237611). The command-line tool is available in the [Windows Assessment and Deployment Kit (Windows ADK)](https://go.microsoft.com/fwlink/?LinkId=206587) and includes additional functionality that supports servicing commands for international settings.
23
+
## Description
30
24
31
-
You can check for errors when running DISM cmdlets by checking if the $?. If set to True the last operation succeeded. If False the last operation failed. The $LASTEXITCODE contains the exit code of the last Win32 executable run. For example, to check that the **Get-WindowsImage** cmdlet fails to get information about the Windows image contained in the file, E:\images\c.wim, type the following:
25
+
The Deployment Image Servicing and Management (DISM) platform is used to mount and service Windows
26
+
images before deployment. A subset of DISM commands can be used on online Windows images. You can
27
+
use DISM tools to mount, and get information about, Windows image (.wim) files or virtual hard disks
28
+
(.vhd or .vhdx). You can also use it to install, uninstall, configure, and update Windows features,
29
+
packages, and drivers in a Windows image or to change the edition of a Windows image.
30
+
31
+
This topic introduces the DISM cmdlets available in the DISM PowerShell module. This module is
32
+
available in Windows 8.1 and Windows Server 2012 R2. On other supported operating systems, you can
33
+
install the DISM module from the
34
+
[Windows Assessment and Deployment Kit (Windows ADK)](https://go.microsoft.com/fwlink/?LinkId=206587).
35
+
For more information about how to use the DISM PowerShell module installed with the ADK, see
36
+
[How to Use DISM in Windows PowerShell](https://go.microsoft.com/fwlink/?LinkId=239927).
37
+
38
+
For Windows 8.1 and Windows Server 2012 R2, Windows PowerShell 4.0 is included in the installation.
39
+
For other supported versions of Windows and Windows Server, (including Windows 8, Windows 7 SP1,
40
+
Windows Server 2012, and Windows Server 2008 R2 SP1), you must install Windows Management Framework
41
+
4.0. You can download and install
42
+
[Windows Management Framework 4.0](https://go.microsoft.com/fwlink/?LinkId=293881) from the
43
+
Microsoft Download Center.
44
+
45
+
The DISM platform also includes a command-line tool, DISM.exe, and the
46
+
[DISM API](https://go.microsoft.com/fwlink/?LinkID=237611). The command-line tool is available in
47
+
the
48
+
[Windows Assessment and Deployment Kit (Windows ADK)](https://go.microsoft.com/fwlink/?LinkId=206587)
49
+
and includes additional functionality that supports servicing commands for international settings.
50
+
51
+
You can check for errors when running DISM cmdlets by checking if the `$?`. If set to True the last
52
+
operation succeeded. If False the last operation failed. The `$LASTEXITCODE` contains the exit code
53
+
of the last Win32 executable run. For example, to check that the `Get-WindowsImage` cmdlet fails to
54
+
get information about the Windows image contained in the file, `E:\images\c.wim`, type the
55
+
following:
32
56
33
57
```
34
58
try
35
59
{
36
-
60
+
37
61
Get-WindowsImage -ImagePath E:\images\c.wim
38
62
}
39
63
catch
@@ -44,7 +68,8 @@ catch
44
68
45
69
```
46
70
47
-
For more information about error handling, see the [about_Try_Catch_Finally](https://go.microsoft.com/fwlink/p/?LinkID=317390).
71
+
For more information about error handling, see the
0 commit comments