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

Unable to install MicrosoftWebDriver using DISM,

I have tried to install the driver using DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0. But its failing with below error Deployment Image Servicing and Management tool Version: 10.0.17763.771 Image Version:…
0
votes
1 answer

Wix installer custom action for running dism failing

So this installer works fine until I add the following, strange part is after it rolls back the install due to the error the features I am adding via dism.exe are actually turned on like I want. Tempted to just add something to ignore the error but…
Paul Swetz
  • 2,234
  • 1
  • 11
  • 28
0
votes
1 answer

diskpart and batch file

I'm trying to automate some DISM processes. After booting winpe from USB, some times the drive letters changes, so I need to build a batch file that displays the different volumes so the user can select the drive letter for the DISM capture-image…
0
votes
1 answer

NSIS dism enable NetFx3 error 11 windows 2012

I want to enable .net3.5 in nsis installer in windows 2012. I used next code: nsExec::ExecToStack 'cmd /c %windir%\system32\dism.exe /Online /Enable-Feature /FeatureName:NetFx3 /All' But it return error 11.enter image description here my dism log…
0
votes
1 answer

Is there a way of adding a windows type progress bar to a powershell script running Dism?

I am trying to add a windows type progress bar to a powershell script running Dism. I am having difficulty with thw win32_service. Would anyone know how to do this? dism /Apply-Image /ImageFile:Z:\path\wim.wim /Index:1 /ApplyDir:C:\
James
  • 1
0
votes
1 answer

Dism unrecognized in CMD Shell in C#

I'm trying to enable dotnet 3.5 for a dependency for another application I'm installing. The problem is that my cmd shell that I'm using throws this error "'dism' is not recognized as an internal or external command, operable program or batch file."…
Holly Plyler
  • 339
  • 2
  • 10
0
votes
2 answers

Understanding batch for loops with in (%variable1%, %variable2%...)

I have some tools that I'm trying to batch script on the back end of an MDT server. One of those tools is DISM/ImageX. What I'm trying to automate is a script that checks for the folders so that DISM can extract the individual WIM files and then I…
0
votes
1 answer

Monitor dism.exe from nodejs

i need help to monitor the progressbar from dism.exe on windows systems. dism.exe is spawnd from my node.js script: const { spawn, exec } = require('child_process'); const ls = exec('dism.exe /Unmount-Image /MountDir:"C:\\WinPE_amd64\\mount"…
Marc
  • 2,920
  • 3
  • 14
  • 30
0
votes
1 answer

How to enable test mode when deploying Windows 10 wim image with Dism?

I am upgrading about 200 machines in my lab from Windows 7 to Windows 10, and as part of the upgrade, I am also converting the file system on the machines to GPT. I am doing this as an automated process with WinPE images that are loaded from my PXE…
vadim6385
  • 37
  • 5
0
votes
0 answers

Enabling Hyper-V on Windows 10 not working

When I run Enable-WindowsOptionalFeature -Online -FeatureName:Microsoft-Hyper-V-All I get Error Code: 0x800f0831 I know online it says it is typically a .NET error, but I have double checked that .NET is installed properly. I've tried the scan now…
VivaLaRobo
  • 463
  • 5
  • 14
0
votes
2 answers

Convert DISM output to PS objects

Can you point me in the right direction, on how do convert this DISM output to Powershell objects so i can use them in my script, to filter on the results ? dism /Get-WimInfo /WimFile:"E:\_Source\OSD\x64\Windows 10…
BenDK
  • 131
  • 2
  • 7
0
votes
0 answers

Run DISM /online /enable-feature /FeatureName:NetFx3 in CMD from a Winform C#

I am developing a software where a user clicks a button and enables the Framework feature it is a WINFORM with C# coding. My Question is how can I from a WINFORM run a command as admin and passDISM /online /enable-feature /FeatureName:NetFx3 for it…
Lou Mal
  • 113
  • 1
  • 2
  • 10
0
votes
1 answer

Using DISM on a remote host

I'm trying to use a dism command to enable a few windows features on several different machines. Here is an example: dism /online /enable-feature /featurename:MSMQ-Container dism /online /enable-feature /featurename:MSMQ-Server dism /online…
Xanderu
  • 747
  • 1
  • 8
  • 30
0
votes
1 answer

How can i know total number of index available in a Windows index.wim file using DISM on the command line

I want to know the total number of index available in a install.wim file located in windows source using dism and store that number in a numeric variable in same dos batch script. So far I have tried below commands in a batch. for /L %%A IN (1, 1,…
Tarak Bhavsar
  • 145
  • 2
  • 13
0
votes
2 answers

Update a provisionned appx

I've developed a LOB App and want to provision the package for it on a Windows 10 PC. I want use the DISM Cmdlet: Add-AppxProvisionedPackage -Online -PackagePath ..\cordova-appx\my.appx -SkipLicense but this cmdlet works only for the new Users, not…
lg0173
  • 208
  • 2
  • 8
  • 20