Windows 10: Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive?

Discus and support Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive? in Windows 10 Gaming to solve the problem; Hello,I'm trying to update one of my virtual machines running Windows 10 the hard way. I was wondering if I could use dism /apply-image... Discussion in 'Windows 10 Gaming' started by Random_One0113, Nov 23, 2024.

  1. Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive?


    Hello,I'm trying to update one of my virtual machines running Windows 10 the hard way. I was wondering if I could use dism /apply-image /imagepath:H:\Sources\install.wim to update them. My only concern is that it would delete the data on the virtual hard disk, and if it would change the computer's name.Thank you!

    :)
     
    Random_One0113, Nov 23, 2024
    #1
  2. swegmike Win User

    Dism errors on mount and (re) apply of wim image

    I have windows 10 pr with alot of apps installed that I want to make a wim image of before I start adding my document files. I had fixed an old work computer with a new screen, keyboard and updated to a SDD from a seagate 500G HDD. My Windows 10 pro boots up without problem and I used ccclearner to cleanout all the junk from temp directories and cleaned registry. Here I'll specify my steps in using dism and then using it to restore the wim image. I know my image is good since I've put it on a recovery partition and used Kari's bootup batch file and reinstalled without problem; however, dism is having problems in both cases and giving an error 5 message "access denied" 0x8007005 along with a dism log (these to be posted in additional posts. I performed the steps in MSoft weblink https://learn.microsoft.com/en-us/an...ror-0x80070005 by running the command below, which all of them passed. sfc /scannow (and press Enter) Dism /Online /Cleanup-Image /ScanHealth (and press Enter) Dism /Online /Cleanup-Image /CheckHealthcd (and press Enter) After creating my wim image via dism and dumping some of the contents for a given index, I then tried to use dism to mount it per, dism /capture-image /imagefile:E:\MyInstallnew.wim /capturedir:C:\ /name:"MyRecovery2" /description:"MY Win10Pro, Offic2021 proplus,Visio/Project 2021 pro, Antivir, Browsers, SQL 2022 Express server/SSMS and various software Recover Image" /compress:maximum dism /Mount-Wim /WimFile:E:\MyInstallnew.wim /Index:1 /ReadOnly /MountDir:E:\mike It errored out with "error 5" Next, I tried to re apply it to drive C to use my wim to restore drive C and it errored out with "error 5". I know my wim works since the bootup recovery options per Kari's steps was done. dism /Apply-Image /ImageFile:E:\MyInstallnew.wim /Index:1 /ApplyDir:C:\ I'll upload the dism.log tomorrow since I forgot to save it. The apply is complaining about a file in "c:\Program Files\windowapps during my applying of the image. It doesn't give as much specifics when trying to mount the wim file. Although I have admin privileges, I tried to go into the "windowsapps" subdirectory, but it wanted me to use the security screen. Upon checking each entry to see if read-only was specified, I encountered a problem where it said C:\MSWPC\Users "access control entry is corrupt". This also occurs on another laptop of the same make and model and windows 10 OS. I don't know how to correct this and am surprised the SFC and DISM checks didn't fix it, and also how I can login and do anything since I'm the only user account on the laptop. First security screen with the last entry selected
    Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive? 400504d1700003000t-dism-errors-mount-re-apply-wim-image-windowsapp_sec1.png
    Here's a pic of the error message I don;t know how to fix.
    Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive? 400505d1700003042t-dism-errors-mount-re-apply-wim-image-windowsapp_sec2_err.png
    The logs I'll post tomorrow will show the suspected file from Dellassist and its version number which is out of date since I have the latest version installed and it works. The error found is more specific when the "apply" of the wim image is done, but upon bootup installation there is no error. I assume its the cause of the mount error although it doesn't specify why. Moreover, there are two warning message about missing dism dlls' which I'd think should be there since I have whatever dism and update comes with windows 10.
     
    swegmike, Nov 23, 2024
    #2
  3. DISM /Source option how to use a USB flash drive as the source

    Hi CPP0702,

    Let's try converting ESD to WIM and try running DISM again. To convert the file format,

    • dism /Export-Image /SourceImageFile:F:\sources\install.esd /SourceIndex:1 /DestinationImageFile:C:\install.wim /Compress:Max /CheckIntegrity
    Once the C:\install.wim file is ready, run:

    • dism /online /cleanup-image /restorehealth /source:C:\install.wim
    Please upload "C:\WINDOWS\Logs\DISM\dism.log" if the issue persists.
     
    Ramesh Srinivasan, Nov 23, 2024
    #3
  4. Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive?

    Recover from WIM files.

    Hello,Dusty_229

    Welcome to Microsoft Community.

    Restoring from a WIM file when the usual recovery options don't seem to work can indeed be a bit tricky, but I'm here to help guide you through an alternative method that might just do the trick. Since you've mentioned the WIM files can't be selected for restore in the usual way and the idea of using Command Prompt feels daunting, I'll break down the steps in a simple, easy-to-follow manner.

    The goal here is to use the Deployment Image Servicing and Management (DISM) tool, which is a command-line tool that comes with Windows, to apply the image contained in the WIM file to your system. Here you can refer to this documentation | Append, apply, and export volume images with a Windows Image (.wim) file | Microsoft Learn

    Before starting, make sure you have access to the Windows Recovery Environment (WinRE). and make a backup or copy of your WIM files, please see here to Boot into Windows Recovery Environment -<Windows Recovery Environment (Windows RE) | Microsoft Learn>

    1. Once you're in the Windows Setup screen, click "Next."
    2. Select "Repair your computer" at the bottom.
    3. Go to "Troubleshoot" > "Advanced options" > "Command Prompt."
    Now, you're going to use the DISM command to apply the WIM file to your system. You'll need to replace X: with the drive letter of your Windows installation (usually C:, but it might appear under a different letter in WinRE) and Y: with the drive letter of your USB drive where the WIM file is stored.

    1. First, identify the correct drive letters for your system and USB drive by typing diskpart and then list volume in the Command Prompt. Look for the volume labeled "Windows" for your system drive and another for your USB drive. Exit DiskPart by typing exit.
    2. Use the following DISM command to apply the image. Make sure to replace Y: with the actual drive letter of your USB drive and X: with the drive letter of your Windows installation:

      If your backup is split into multiple WIM files (like Reconstruct.WIM and Reconstruct.WIM2), you might need to apply the first part only, as DISM should automatically proceed with the next parts if they're named in sequence and located in the same folder.

    ->Final Steps

    After the DISM command has successfully applied the WIM file:



    You might need to repair the boot configuration data (BCD). You can do this with the following commands:

    [table][tr]
    [/tr][/table]

    Exit the Command Prompt and choose to "Continue" to boot to Windows normally, or restart your computer. you can run these commands in WinRE mode.

    This process might seem a bit technical, but it's a powerful way to manually restore your system from a WIM file when other methods fail. If you feel uncertain at any step, don't hesitate to ask for further clarification.

    Chandy |Microsoft Community Support Specialist
     
    Chandy - MSFT, Nov 23, 2024
    #4
Thema:

Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive?

Loading...
  1. Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive? - Similar Threads - Does using dism

  2. Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive?

    in Windows 10 Software and Apps
    Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive?: Hello,I'm trying to update one of my virtual machines running Windows 10 the hard way. I was wondering if I could use dism /apply-image /imagepath:H:\Sources\install.wim to update them. My only concern is that it would delete the data on the virtual hard disk, and if it would...
  3. Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive?

    in Windows 10 Installation and Upgrade
    Does using dism /apply-image /imagepath:H:\Sources\install.wim erase the drive?: Hello,I'm trying to update one of my virtual machines running Windows 10 the hard way. I was wondering if I could use dism /apply-image /imagepath:H:\Sources\install.wim to update them. My only concern is that it would delete the data on the virtual hard disk, and if it would...
  4. Applying WIM image Error: 5 Access is denied

    in Windows 10 Gaming
    Applying WIM image Error: 5 Access is denied: Hey guys, please i could really use some help with this. So i was using Windows 11, made a backup where i got 3 WIM files. I went back to Windows 10 because the TPM 2.0 requirements, could not play League of Legends, Valorant because of the Vanguard Anti-Cheat needed TPM 2.0...
  5. Applying WIM image Error: 5 Access is denied

    in Windows 10 Software and Apps
    Applying WIM image Error: 5 Access is denied: Hey guys, please i could really use some help with this. So i was using Windows 11, made a backup where i got 3 WIM files. I went back to Windows 10 because the TPM 2.0 requirements, could not play League of Legends, Valorant because of the Vanguard Anti-Cheat needed TPM 2.0...
  6. Data WIM using DISM

    in Windows 10 Software and Apps
    Data WIM using DISM: Dear Support Team,Can anyone guide me how to add Data Wim in Answer file using Windows System Image Manager Windows 10 with real life example. I was able to create Data Wim using DISM but got stuck at further steps....
  7. Data WIM using DISM

    in Windows 10 Gaming
    Data WIM using DISM: Dear Support Team,Can anyone guide me how to add Data Wim in Answer file using Windows System Image Manager Windows 10 with real life example. I was able to create Data Wim using DISM but got stuck at further steps....
  8. Data WIM using DISM

    in Windows 10 Drivers and Hardware
    Data WIM using DISM: Dear Support Team,Can anyone guide me how to add Data Wim in Answer file using Windows System Image Manager Windows 10 with real life example. I was able to create Data Wim using DISM but got stuck at further steps....
  9. Access Denied when using DISM to apply image

    in Windows 10 Installation and Upgrade
    Access Denied when using DISM to apply image: I am trying to migrate to a larger M.2 Drive in my Dell Laptop. I created a 64Bit WinPE USB drive, booted to that drive, used DISM to capture WIM files of the smaller M.2 drive. I then swapped out the M.2 Drive, booted to the USB drive, Created the partitions, tried to...
  10. Apply Windows Image using DISM Instead of Clean Install

    in Windows 10 Tutorials
    Apply Windows Image using DISM Instead of Clean Install: How to: Apply Windows Image using DISM Instead of Clean Install [img] Information The most boring part of computing is waiting operating system to be installed. Installing Windows 10 can take anything from 10 to over 30 minutes (depending on hardware). The low end i5...