Questions tagged [dism]

Deployment Image Servicing and Management (DISM) is a command-line tool that can be used to service a Windows image or to prepare a Windows Preinstallation Environment (Windows PE) image. DISM can be used to install, uninstall, configure, and update Windows features, packages, drivers, and international settings.

Description :

Deployment Image Servicing and Management (DISM) is a command-line tool used to service Windows images offline before deployment. You can use it to install, uninstall, configure, and update Windows features, packages, drivers, and international settings. Subsets of the DISM servicing commands are also available for servicing a running operating system.

DISM tool replaces the pkgmgr, PEImg, and IntlConfg tools that are being retired in Windows 7. DISM provides a single centralized tool for performing all of the functions of these three tools in a more efficient and standardized way, eliminating the source of many of the frustrations experienced by current users of these tools. DISM is installed with Windows 7, and it is also distributed in the Windows OEM Preinstallation Kit (Windows OPK) and the Windows Automated Installation Kit (Windows AIK).

Usage :

DISM used to service Windows images offline before deployment. You can use it to install, uninstall, configure, and update Windows features, packages, drivers, and international settings. Subsets of the DISM servicing commands are also available for servicing a running operating system.

You can use DISM with .wim files to:

  • Capture and apply Windows images.
  • Append and delete images in a .wim file.
  • Split .wim files into several smaller files.

You can use DISM with .wim, .vhd, or .vhdx files to:

  • Add, remove, and enumerate packages.
  • Add, remove, and enumerate drivers.
  • Enable or disable Windows features.
  • Apply changes based on the offlineServicing section of an Unattend.xml answer file.
  • Configure international settings.
  • Upgrade a Windows image to a different edition.
  • Prepare a Windows PE image.
  • Take advantage of better logging.
  • Service earlier versions of Windows such as Windows 7, Windows Server 2008 R2, Windows Vista with the latest Service Pack, and Windows Server 2008.
  • Service all platforms (32-bit, 64-bit).
  • Service a 32-bit image from a 64-bit host, and service a 64-bit image from a 32-bit host. For more information, see the "Limitations" section later this topic.
  • Make use of old Package Manager scripts.

Source : https://msdn.microsoft.com/en-us/library/windows/desktop/dd371719%28v=vs.85%29.aspx https://technet.microsoft.com/en-in/library/hh825236.aspx

92 questions
6
votes
2 answers

Programmatically start a process independent of platform

Situation I am trying to run a command-line tool, DISM.exe, programmatically. When I run it manually it works, but when I try to spawn it with the following: var systemPath = Environment.GetFolderPath(Environment.SpecialFolder.System); var dism =…
Ben Aaronson
  • 6,955
  • 2
  • 23
  • 38
5
votes
1 answer

DISM.exe Return Codes?

I have a program that calls the dism.exe program and it runs a few commands in the background. Right now, I only check for a return code of 0 or anything else in order to show a process failed or succeeded. What could i cross examine the return code…
Tyler
  • 51
  • 1
  • 3
5
votes
2 answers

"Error 87 the all option is not recognised in this context" using DISM to enable IIS

I am trying to use a bat to enable IIS to run an asp.net application on a windows 7 (professional) 64bit machine and seem to be constantly encountering this issue. I am running the bat file as an administrator. The entry in my bat file I am using is…
user3305823
  • 51
  • 1
  • 2
4
votes
0 answers

windows 10 iot dism failed

Can anyone give me some pointers as to why this isn't working for me? I'm following the steps provided here. I have the latest W10 version on my laptop. (I literally just updated it) When I run the code to apply the flash.ffu image dism.exe…
jtrdev
  • 915
  • 1
  • 9
  • 25
4
votes
3 answers

WIX enable Windows feature

I have to check if some windows features are enabled beore installing my software. I can check it or install it using dism command line tool. I create a custom action to do this, but is there a way to do it in a "WIX native way" ?
Koektudis
  • 103
  • 1
  • 7
3
votes
2 answers

DISM call via C#

Process p = new Process(); p.StartInfo.FileName = "dism"; p.StartInfo.Arguments = "/online /get-packageinfo /packagename:WinEmb-File-Based-Write-Filter~31bf3856ad364e35~amd64~~6.1.7601.17514"; p.StartInfo.UseShellExecute =…
Nenad
  • 316
  • 2
  • 14
3
votes
1 answer

cleanup-wim says successful in batch, but wim is still orphaned

This is my first post here, but have been using stackoverflow for a while for any of the problems I run in to. (TL;DR: my batch script says that it successfully unmounts the WIM file, but when I query for WIMs, orphaned files are still around until…
zer0
  • 31
  • 1
  • 4
3
votes
1 answer

Enable IIS Roles and Features Programmatically

I am trying to enable IIS features through c# console application. It is working fine in windows 7 and windows 8.1 machines. but when I run the same code on windows server 2008 R2 and windows server 2012 R2 it is not working. What am I missing in…
PSR
  • 875
  • 2
  • 13
  • 37
3
votes
0 answers

WIX Installer - Validate return value from ExePackage

I am running a number of ExePackages in my WIX installer (custom GUI) that call DISM to download various components. When internet is not available they fail but I am unable to tell the user why. The WIX installer log reports appropriately what…
Chris
  • 26,744
  • 48
  • 193
  • 345
2
votes
1 answer

iisnode on Windows 10 Pro - from Internal error 500.19 to Error code: 0x800F0954

I got a new PC at work with Windows 10 Pro and had to setup iisnode on it... I started by installing nodeJS (v8.11.3) got & installed iisnode-full-v0.2.21-x64 got and installed urlrewrite2 went to the iisnode installation folder to run…
Akber Iqbal
  • 14,487
  • 12
  • 48
  • 70
2
votes
1 answer

Universal Windows App fails to launch, "AppxDeploymentFailureBlue"

I've installed my own Universal Windows App for all users on a PC, using the DISM tool while being logged-in in Audit Mode. After doing so, I reboot into OOBE (using sysprep command), create a new user and try to launch this app. The result is that…
Yoav Feuerstein
  • 1,925
  • 2
  • 22
  • 53
2
votes
2 answers

Wix: Cannot call DISM from Wix CustomAction

Wix 3.10 After reading the article (Run ExeCommand in customAction as Administrator mode in Wix Installer), I have used a deferred CustomAction with attribute Impersonate="no", calling a batch file with DISM command.
illuminate33
  • 117
  • 1
  • 9
2
votes
0 answers

Do Microsoft's imagex/dism have the equivalent of wimlib's --delta-from?

For pushing small changes to an existing wim image, you can significantly reduce network traffic by using the previous wim file as a base wim and a file that contains only the "changes" as the main wim. wimlib is an open source library for playing…
aggieNick02
  • 2,557
  • 2
  • 23
  • 36
2
votes
1 answer

python/pyqt - Pass a CancelEvent to a C++ function

I have a WinApi function with a CancelEvent parameter but I don't know what I have to pass there? HRESULT WINAPI DismUnmountImage( _In_ PCWSTR MountPath, _In_ DWORD Flags, _In_opt_ HANDLE …
FalloutBoy
  • 964
  • 1
  • 9
  • 22
2
votes
1 answer

DISM: Why am I getting Error: 2, unable to access the image

After mounting a image to my local C drive in the folder 'mount', I run the command: dism /image:c:\mount /get-features I receive an error message: Error: 2 Unable to access the image. Make sure that the image path and the windows directory for…
Maximillion Bartango
  • 1,533
  • 1
  • 19
  • 34
1
2 3 4 5 6 7