DISM - Add or Remove Drivers on an Offline Image  

Page 8 of 9 FirstFirst ... 6789 LastLast
  1. Hoolm's Avatar
    Posts : 492
    OS 10 64
       #70

    DISM - Add or Remove Drivers on an Offline Image-ashampoo_snap_friday-december-13-2019_03h52m06s_002_.png
      My Computer


  2. Posts : 66
    Windows 10
       #71

    hsehestedt said:
    Two things you can do:

    2) Connect the image to a Hyper-V or VMware Virtual Machine and see if you can boot the VM from the image.
    I was reading some thing and came across here. I am testing some thing which is a series of a lot of things. So I thought of creating bootable USB and in vmware I wanted to use Plop boot manager in my case that did not worked. So just wanted to know that ISO how should it be made to boot I mean after all that boot reboot injecting drivers in wim images etc at the end of every thing how do you generate an ISO from a mounted or folder which has copied contents of ISO etc? I hope my question is clear.
      My Computer

  3. Paul Black's Avatar
    Posts : 12,119
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #72

    Good morning.

    I setup a variable for the drive letter and the desktop [ in case the OS is not installed on C: ].

    Now I can export the current Online drivers without a problem . . .
    Code:
    Dism /Online /Export-Driver /Destination:"%DesktopFolder%\Drivers_CUR"

    For some reason I can't export the drivers from a Mounted image using right-click the ISO and click Mount. I want to use Index:6 which is Pro . . .
    Code:
    Dism /Image:"%drvlttr%":\sources\install.wim /Index:6 /Export-Driver /Destination:"%DesktopFolder%\Drivers_OFF"
    Now I think that it has something to do with the fact that there are 11 images in the ISO.
    I have tried including the Index number in the cmd but I can't get it to work.
    I am sure I am missing something really simple here.

    When I run . . .
    Code:
    Dism /Image:"%drvlttr%":\ /Export-Driver /Destination:"%DesktopFolder%\Drivers_OFF"
    I get the message . . .
    Error: 2
    Unable to access the image.
    I have full access and permissions.

    Thanks in advance.
    Last edited by Paul Black; 05 Aug 2020 at 07:11.
      My Computer

  4. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
    Thread Starter
       #73

    Paul Black said:
    For some reason I can't export the drivers from a Mounted image using right-click the ISO and click Mount. I want to use Index:6 which is Pro . . .
    Terms Mount and Mounted can be a bit confusing, as they mean two completely different things: Mounting an ISO (right click > Mount) means that the ISO image file is mounted as Read Only virtual DVD.

    Mounting a WIndows image for offline servicing (tutorial Part Three) means a user specified Windows image (index) from install.wim file is extracted to a Mount folder, where it can be serviced (add drivers etc.), and then these changes committed (saved) to same install.wim file.

    Because committing changes means that the install.wim file cannot be write protected, you cannot mount install.wim directly from mounted ISO, as it is on Read Only (write protected) virtual DVD.

    Short: you cannot add drivers to a mounted ISO, nor can you export drivers from it. Both operations require a Windows image being mounted for offline servicing.

    Kari
      My Computer

  5. Paul Black's Avatar
    Posts : 12,119
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #74

    Thanks for the reply @Kari, it is appreciated.

    I mounted the ISO and tried to export the drivers but it did NOT give me any results!
    Here is what I did . . .
    Code:
    dism /export-image /sourceimagefile:"G:\sources\install.wim" /sourceindex:6 /destinationimagefile:"D:\Test\install.wim"
    dism /Mount-Image /ImageFile:"D:\Test\install.wim" /Index:1 /MountDir:"D:\Test\MountWim"
    dism /Image:"D:\Test\MountWim" /Export-Driver /Destination:"D:\Test\Drivers"
      My Computer

  6. musse75's Avatar
    Posts : 1
    Win10
       #75

    Thanks for the Tutorial Kari!

    I want to inject new storage drivers so that when I install Win10 offline with autounattend.xml it can find the harddisk.
    It doesn't work for me to mount the image, is it because it's a LTSC 2019 version?
    What is the difference between Mount-Image and Mount-Wim?
    If I want the new drivers to be available before installing windows I guess I need to inject the boot.wim?
    In boot.wim there is two index, one Microsoft Windows PE (x64) and the other Microsoft Windows Setup (x64), so which one should I inject the drivers to? both?

    When I use:
    Code:
    DISM /Mount-Image /ImageFile:"D:\injectdrivers\DVD\sources\install.wim" /Index:1 /MountDir:"D:\injectdrivers\mount" /checkintegrity
    I also tried like this with same result
    Code:
    DISM /Mount-Wim /WimFile:"D:\injectdrivers\DVD\sources\boot.wim" /Index:1 /MountDir:"D:\injectdrivers\mount" /checkintegrity
    The result I get is this error:

    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1282

    Error: 0xc142011f

    The volume of the specified mount path does not support reparse points. Please mount to a volume that supports reparse points.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    This is in the log file:
    Code:
    2020-09-30 13:53:46, Info                  DISM   PID=5176 TID=7400 Scratch directory set to 'C:\Users\test.ABD\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2020-09-30 13:53:46, Info                  DISM   PID=5176 TID=7400 DismCore.dll version: 10.0.17763.1282 - CDISMManager::FinalConstruct
    2020-09-30 13:53:46, Info                  DISM   Initialized Panther logging at C:\Windows\Logs\DISM\dism.log
    2020-09-30 13:53:46, Info                  DISM   PID=5176 TID=7400 Successfully loaded the ImageSession at "C:\Windows\system32\Dism" - CDISMManager::LoadLocalImageSession
    2020-09-30 13:53:46, Info                  DISM   Initialized Panther logging at C:\Windows\Logs\DISM\dism.log
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Failed to get and initialize the PE Provider.  Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2020-09-30 13:53:46, Info                  DISM   Initialized Panther logging at C:\Windows\Logs\DISM\dism.log
    2020-09-30 13:53:46, Info                  DISM   DISM Manager: PID=5176 TID=7400 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: 
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: 
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Host machine information: OS Version=10.0.17763, Running architecture=amd64, Number of processors=4
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Dism.exe version: 10.0.17763.1282
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Executing command line: DISM  /Mount-Wim /WimFile:"D:\injectdrivers\DVD\sources\boot.wim" /Index:1 /MountDir:"D:\injectdrivers\mount" /checkintegrity
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Connecting to the provider located at C:\Windows\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2020-09-30 13:53:46, Warning               DISM   DISM Provider Store: PID=5176 TID=7400 Failed to load the provider: C:\Windows\system32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Connecting to the provider located at C:\Windows\system32\Dism\FfuProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Connecting to the provider located at C:\Windows\system32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Connecting to the provider located at C:\Windows\system32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Connecting to the provider located at C:\Windows\system32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Connecting to the provider located at C:\Windows\system32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2020-09-30 13:53:46, Warning               DISM   DISM Provider Store: PID=5176 TID=7400 Failed to load the provider: C:\Windows\system32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FfuManager
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: FfuManager.
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: VHDManager
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    [5176] Mounting new image.
    Wim:         [D:\injectdrivers\DVD\sources\boot.wim]
    Image Index: [1]
    Mount Path:  [D:\injectdrivers\mount]
    [5176] [0xc142011f] ImageCreate:(273)
    [5176] [0xc142011f] WIMMountImageHandle:(1170)
    [5176] [0x80070002] StateStoreRemoveMountedImage:(1124): The system cannot find the file specified.
    [5176] [0x80070002] WIMMountImageHandle:(1332): The system cannot find the file specified.
    2020-09-30 13:53:46, Error                 DISM   DISM WIM Provider: PID=5176 TID=7400 "Failed to mount the image." - CWimImageInfo::Mount(hr:0xc142011f)
    2020-09-30 13:53:46, Error                 DISM   DISM WIM Provider: PID=5176 TID=7400 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:2686 - CWimManager::InternalOpMount(hr:0xc142011f)
    2020-09-30 13:53:46, Error                 DISM   DISM WIM Provider: PID=5176 TID=7400 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:4030 - CWimManager::InternalCmdMount(hr:0xc142011f)
    2020-09-30 13:53:46, Error                 DISM   DISM WIM Provider: PID=5176 TID=7400 "Error executing command" - CWimManager::InternalExecuteCmd(hr:0xc142011f)
    2020-09-30 13:53:46, Error                 DISM   DISM WIM Provider: PID=5176 TID=7400 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:2203 - CWimManager::ExecuteCmdLine(hr:0xc142011f)
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: 
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2020-09-30 13:53:46, Info                  DISM   DISM.EXE: 
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Disconnecting Provider: FfuManager - CDISMProviderStore::Internal_DisconnectProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Disconnecting Provider: VHDManager - CDISMProviderStore::Internal_DisconnectProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Disconnecting Provider: GenericImagingManager - CDISMProviderStore::Internal_DisconnectProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2020-09-30 13:53:46, Info                  DISM   DISM Provider Store: PID=5176 TID=7400 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider

    Many thanks in advance

    PS. Yes I know "quotes" is only needed if there is a space in the path DS.
    Last edited by musse75; 30 Sep 2020 at 06:59.
      My Computer

  7. Snakefist's Avatar
    Posts : 102
    Windows 10 Pro x64 Full Retail Version
       #76

    Great tutorial. Since i had a D drive i did everything like you said and everything went great.
      My Computer

  8. Ulysses's Avatar
    Posts : 40
    Windows 10 LTSC (version: 1809)
       #77

    @Kari
    Thanks for great tutorials.

    I did export all installed official drivers from current machine (Windows 10) and saved them on D: partition. My ask is now how to restore them when i will re-install Windows on that machine? is avalaible restoring fron Powershell or CMD? Thanks.
    Last edited by Ulysses; 20 Jan 2021 at 10:55.
      My Computer

  9. Sven1458's Avatar
    Posts : 301
    windows 10
       #78

    Hi Kari,
    Got a problem:
    I extracted the install.esd from my usb drive , converted it to .wim and integrated the drivers following you tutorial.
    after that i unmounted with the /commit switch but it would not unmount because something was open that prevented the unmount. so i closed everything that was open and again unmounted and it did that. now i am trying to reinsert the install. wim in to the usb drive. it is plenty big ,250 gb, but it tells me that it can not be copied over because it is to big.
    what would cause that? any idea how to fix that?
    Thanks
    Sven
      My Computer

  10. SIW2's Avatar
    Posts : 1,660
    trying to install win10
       #79

    You would need a filesystem such as ntfs or exfat.

    If your usb is formatted fat32 it only supports files of up to 4gb
      My Computer


 
Page 8 of 9 FirstFirst ... 6789 LastLast

Tutorial Categories

DISM - Add or Remove Drivers on an Offline Image Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 07:01.
Find Us




Windows 10 Forums