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
2
votes
2 answers

Get the index number of a certain architecture in a Windows Image

I have an Windows 7 image (WIM) that contains multiple architectures. I want to know the index number of an particular architecture, inside the image. For example, the image contains (In no specific order): Windows 7 Ultimate x64 Windows 7 Ultimate…
Tarak Bhavsar
  • 145
  • 2
  • 13
2
votes
1 answer

How do I Sideload a Windows App for All Users on Already Deployed Windows Images?

We have an enterprise Windows store app targeting Windows 8.1 and Windows 10. We are currently using sideloading to deploy the app. We need to be able to deploy the app for all users on a particular device. According to this technet…
Eric
  • 101
  • 1
  • 8
2
votes
1 answer

Use Dism v10 of ADK on Srv2012r2 inside a script

What I Want to achive: I want to update a batch of wim-files via a scheduled task. Therfore I mount the wims, add the update-packages and dismount the wims. So far no problem via the dism-module included in PoSh4 on Windowsserver 2012r2. Problem:…
restless1987
  • 1,558
  • 10
  • 16
2
votes
2 answers

MSMQ HTTP disable error

I’m trying to install NServiceBus from installer, downloaded from particular.net Installer wants MSMQ components to be disabled. All components could be disabled, except the MSMQ Http support. Disabling of this component fails with error code…
BumbleBee
  • 97
  • 1
  • 8
2
votes
1 answer

DISM throws error with HRESULT=80310000

Got an error out of DISM when attempting to capture Surface Pro 3's existing image. I boot to WinPE via USB flash drive fine. I attached a second USB drive (Drive E:) AFTER WinPE boot, and check that I can navigate to it. I can, so I return back to…
Redgum
  • 388
  • 5
  • 14
1
vote
1 answer

Powershell DISM and SFC Script with Transcript

Write-Host "DISM and SFC" -ForegroundColor Cyan Start-Transcript C:\DISM_SFC.txt Start-Process -FilePath "dism.exe" -ArgumentList '/online /cleanup-image /analyzecomponentstore' -Wait -NoNewWindow Start-Process -FilePath "dism.exe" -ArgumentList…
Moxadonis
  • 23
  • 4
1
vote
1 answer

DISM.exe works but Get-WindowsOptionalFeature (powershell) fails

When using DISM.exe to get Windows optional features using command dism /Online /Get-Features, the program exits within 1 second and outputs the right results. But when using the command Get-WindowsOptionalFeature -Online in powershell, it stucks…
CarlGao4
  • 11
  • 3
1
vote
2 answers

Using DISM Api to Capture Image Programatically within Windows PE Environment

I've been going through the windows documentation for the Dism API with the goal of writing an exe in C++ (or whatever language can accomplish this) that can create a WIM image while running in Windows PE. I found a .NET Wrapper for the Dism API…
sbeisner
  • 23
  • 5
1
vote
1 answer

What is the difference between RestartRequired and RestartNeeded in Get-WindowsOptionalFeature output?

I run the following: Get-WindowsOptionalFeature -Online -FeatureName TelnetClient | ConvertTo-Json -Depth 100 It produces the following output: { "DisplayName": "Telnet Client", "Description": "Allows you to connect to other computers…
Simon Kissane
  • 4,373
  • 3
  • 34
  • 59
1
vote
1 answer

Windows Power Shell doesn't recognize anything

I am starting the process to try and get my machine to run WSL 2, and I began by following the first step of a tutorial by Microsoft that asks you to run: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all…
1
vote
1 answer

How should i handle dism powershell errors?

Hello I tried to handle the errors from dism with cath.. but that didn't work that good. So my question is, how i can improve it. function dotnet35 () { WriteLogNewScirpt "dotnet35" WriteLogInstruction "installing .Net 3.5 online" …
ItzImmmy
  • 27
  • 6
1
vote
0 answers

VCLibs AppX package causing an error when sideloaded as a package dependecy

I'm trying to side-load an appxbundle (Lenovo Vantage) which fails. The appxbundle has multiple dependencies of which one is causing an issue. The command used to side-load is: dism.exe /Online /Add-ProvisionedAppxPackage /PackagePath:"Lenovo…
Daniel
  • 3,092
  • 3
  • 32
  • 49
1
vote
1 answer

Failed to load the provider SiloedPackageProvider.dll and metaDeployProvider.dll

Trying to simulate Raspberry Pi in windows 10 laptop with windows 10 IOT Core. http://annabooks.com/Articles/Articles_IoT10Core/Windows-10-IoT-Core-VM-Version-1.2.pdf I found this article very useful but has used pre-built image “For MinnowBoard…
1
vote
0 answers

Tracking DISM progress using C# - Working in Windows 10 but not in WinPE

I am using C# to start DISM process to capture/apply image and to track the progress. When I run the code on Windows 10 the progress is being updated normally but when the code I run the code inside WinPE environment the progress is not updated but…
brigate011
  • 23
  • 6
1
vote
2 answers

piping answer to DISM in batch file

I want to install UWF feature through DISM in Windows 10. This works! However, I need to do this several times so I have the DISM command in a batch file. When the DISM command succeeds, it asks if I want to reboot. How can I feed (pipe) an answer?…
Zavulon
  • 121
  • 8