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

Static link in WinPE boot.wim not commited when unmount

I've created a WinPE iso. When booting it launches my hta application stored in a directory called hta in the boot.wim (windows/hta). Everything works fine. Now, to speed up the development I would like to have a static link in the mounted boot.wim…
MathiasS
  • 1
  • 2
0
votes
1 answer

Installing IIS with c# via DISM. DISM runs but doesn't install

I'm trying to install IIS via command line from c# using the below code. When executed, it appears to run without error but when I check programs and features, IIS isn't installed. I've looked through my code and can't find any problems with it. …
Joe
  • 13
  • 7
0
votes
0 answers

dism The source files could not be found. Use the "Source" option to specify the location of the files

I have installed a fresh copy of windows 8. Since, dot-net framework 3.5 is not installed in it. I used microsoft's dism tool to enable this feature. I inserted windows 8 dvd and create a cmd file as follows Dism /online /enable-feature…
Er Mayank
  • 1,017
  • 2
  • 16
  • 39
0
votes
1 answer

Wix Can't Enable IIS in Windows 10 via DISM command

Kubi
  • 2,139
  • 6
  • 35
  • 62
0
votes
1 answer

How to install Windows 10 Core on Raspberry Pi 2 without a real (physical) machine

I only have a Windows 8.1 x64 PC and a Raspberry Pi 2. I have some problems that prevent me from installing Windows 10 on my PC. In this situation, is there any way to install "Windows 10 IoT Core" to the SD card on Raspberry Pi2? I tried the…
user3613864
0
votes
1 answer

DISM fails after SQL Silent install

I am working with an Installscript Project and i have a few features that the user can install. When the user selects to install both SQL Server Express 2008 and a webclient application, DISM is failing. SQL install runs first and installs with no…
user616
  • 783
  • 4
  • 18
  • 44
0
votes
1 answer

Installing a language pack using powershell invoking dism.exe command online

**$exefile = "C:\Windows\System32\dism.exe" $command="C:\Windows\System32\dism.exe /online /add-package /package-path:"+"C:\lang\fr-ca\lp.cab" Invoke-Expression $command** I am getting below error and language pack is not getting installed by…
GarRock
  • 23
  • 1
  • 6
0
votes
1 answer

How to enable Application Server role programmatically on Windows 2008 R2 and Windows 7

As part of an installation process I need to enable the Application Server role. I need to do this to get the distributed transaction features required by an application. I am able to do this easily on a Windows 2012 Server by executing dism.exe…
Kevin Junghans
  • 17,475
  • 4
  • 45
  • 62
0
votes
0 answers

DISM fails in .bat but runs fine from command prompt

I am trying to write a .bat script that will: create a WinPE image; mount the image; allow me to make changes to the image; commit the changes; and create an .iso image. My script is this: set /p proj_name=What is project name: set /p…
Bbbh
  • 321
  • 7
  • 20
0
votes
2 answers

How to avoid preceeding space when expanding Powershell variable

Basically I am trying to put together an IE11 uninstall script. I have found this guide from Microsoft: IE11 Uninstall guide But I want to do it with Powershell and DISM instead, since pkgmgr is depricated. I have put together the below script: #…
Jesper
  • 1
0
votes
1 answer

VBscript wscript.shell execute not refreshing in winpe

I have a DISM based imaging solution for use in WinPE as follows: set WshShell = CreateObject("WScript.Shell") Wscript.StdOut.WriteLine "[44m[1;37m restoring image boot partition for " & name & " [0m[40m" Set objExec = WshShell.Exec("DISM.exe…
Steve Hobbs
  • 131
  • 1
  • 5
  • 14
-1
votes
0 answers

Receiving error 'the source files could not be found' after running DISM, even though I've specified install.wim

I'm trying to repair a corrupted Windows Server 2016 installation. I tried running DISM /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH and received the error The source files could not be found.. So, I mounted the ISO that was used to build the server…
Aideux
  • 109
  • 3
  • 9
-1
votes
1 answer

How can I disable IE on windows Server 2008 SP2?

I want to disable EOL IE on a windows server 2008 SP2 (non R2), i run the below command : "dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64" When running the command I get the error message " dism" is not recognized as an…
MbaMgh
  • 1
-1
votes
1 answer

Windows RSAT Features On Demand offline installation through DISM not working

Afternoon, I am currently trying to install RSAT DNS Tools and Volume Activation Tools through DISM using PowerShell on a computer without internet. My environment is widely off the internet and thus not able to do this the normal way. I have the…
Fitzgery
  • 558
  • 5
  • 14
-1
votes
1 answer

Custom exe completes instantly on WinPE without displaying any output

I have a C++ executable (built for x64) that is a command line program to capture some information about the machine it is running on. I am trying to run it in a WinPE environment for the first time, the exe completes almost instantaneously without…