Apply Windows Image using DISM Instead of Clean Install  

Page 2 of 2 FirstFirst 12
  1.    31 Mar 2018 #10

    @Kari @cereberus

    I have two questions...

    >> Why do you think applying the image is faster than the traditional USB method (via USB 2.0 or 3.0) -- just curious?

    >> When creating the boot entry via "bcdboot G:\Windows" command, if the " /s " flag isn't used to designate where the boot files should be added too, does Windows automatically know which partition to add the boot entry too? What if there was another disk (such as Disk 1) or primary partition.
    Last edited by KabyBlue; 01 Apr 2018 at 08:38.
      My ComputerSystem Spec

  2.    01 Apr 2018 #11

    Windows just knows where the bcd is it seems. I am guessing dism has been updated to search for an existing EFI even in a winpe environment.

    I am guessing here (@Kari may advise) that you would only need to use the /s if trying to create a fully bootable drive with its own EFI partition rather than modifying the exiting EFI partition.

    This would only make sense if you wanted a fully independent drive to boot from selecting boot drive from bios.

    I assume it is faster as dism is just more efficient, and cuts out all the internet, driver checking phases, multiple reboots etc.
      My ComputerSystem Spec

  3. Kari's Avatar
    Posts : 15,236
    Windows 10 Pro
    Thread Starter
       01 Apr 2018 #12

    KabyBlue said: View Post
    >> When creating the boot entry via "bcdboot G:\Windows" command, if the " /s " flag isn't used to designate where the boot files should be added too, does Windows automatically know which partition to add the boot entry too? What if there was another disk (such as Disk 1) or primary partition.
    Installing on GPT disk on UEFI systems, boot records will be on C: drive by default. No need to use /s switch. On MBR disk / BIOS system, if the switch is not used, boot records will be stored on C: drive but using the switch you can store them on System Reserved (or another) partition.

    Note that on MBR disk, you also need to mark partition containing boot records active with DISKPART after adding deployed Windows with BCDBOOT.


    cereberus said: View Post
    I assume it is faster as dism is just more efficient, and cuts out all the internet, driver checking phases, multiple reboots etc.
    Deploying with DISM does not decrease amount of reboots. The deployment phase has no reboots, the same when running a traditional clean installation until OOBE starts. The reboots will then occur when OOBE takes over from Windows installation, be it a deployment with DISM or running Windows Setup from install media.

    Kari
      My ComputerSystem Spec

  4.    01 Apr 2018 #13

    Kari said: View Post
    Installing on GPT disk on UEFI systems, boot records will be on C: drive by default. No need to use /s switch. On MBR disk / BIOS system, if the switch is not used, boot records will be stored on C: drive but using the switch you can store them on System Reserved (or another) partition.

    Note that on MBR disk, you also need to mark partition containing boot records active with DISKPART after adding deployed Windows with BCDBOOT.




    Deploying with DISM does not decrease amount of reboots. The deployment phase has no reboots, the same when running a traditional clean installation until OOBE starts. The reboots will then occur when OOBE takes over from Windows installation, be it a deployment with DISM or running Windows Setup from install media.

    Kari
    Yeah of course you correct about reboots in deployment phase.
      My ComputerSystem Spec

  5.    01 Apr 2018 #14

    You would be better off deploying image to G. Then boot from a windows 10 installation drive, and just use bcdboot - as UEFI, you would not need the /s.

    If you tried to do by booting from wintogo drive, you would have to use /s to ensure it correctly updated EFI on drive 0.
      My ComputerSystem Spec

  6.    04 Apr 2018 #15

    cereberus said: View Post
    You would be better off deploying image to G. Then boot from a windows 10 installation drive, and just use bcdboot - as UEFI, you would not need the /s.

    If you tried to do by booting from wintogo drive, you would have to use /s to ensure it correctly updated EFI on drive 0.
    Solid advice. Thnx!
      My ComputerSystem Spec


  7. Posts : 1
    Windows 10 Enterprise 1709
       15 Jun 2018 #16

    Including Bitlocker Pre-Provisioning


    Hi @Kari,

    That was an awesome Tutorial, exactly what I've been looking for !

    I have been doing a bit of experimenting and found that a slight modification to your procedure can be used to pre-provision Bitlocker encryption, as long as the machine has a TPM chip present and activated on the motherboard. This pre-provisioning, if successful, could save a few hours as compared to configuring it post-install.
    Note: all of the following worked on Win 10 Enterprise x64 1709 on both an old Laptop (non-UEFI, non-Secure Boot e.g. a 10 year old Dell Latitude E4200 ) and a modern desktop (Dell Optiplex 5040 w UEFI and Secure Boot).
    All that's needed is to insert a step between 2.6 and 2.7 which would check if the destination drive is encryptable, and, if it is then enable encryption of used space. Because the 'used space' at that point is almost zero it gets encrypted almost instantaneously. But, because the drive is now encrypted, anything that DISM adds to the drive gets encrypted on the fly ! End result is that when the installation is finished the drive is encrypted with Bitlocker and just needs a 'protector' (e.g. TPM and PIN) added ..

    Here's what worked for me ....
    - just after step 2.6, check that G: drive is actually encryptable (this also checks the BIOS, TPM activated etc.)
    run command 'manage-bde -status' (if that lists the volume as encryptable, then we're good to go to next ..)
    run command 'manage-bde -on G: -used' (that turns on bitlocker for the drive, and should finish after a few seconds ...... just wait a few seconds and verify that another 'manage-bde -status' now shows 100%)
    - .. now proceed to step 2.7

    At the end of the installation and after first bootup and logon you should see a little yellow triangle as well as an unlock icon on the drive, showing it's encrypted but with a 'clear protector' ...... then just need to add a protector, like TPM and PIN e.g. 'manage-bde -protectors -add c: -TPMAndPIN' where you will be prompted for PIN, and if all goes well, will be prompted to enter PIN in order for machine to boot up.
      My ComputerSystem Spec

  8.    3 Weeks Ago #17

    Hi @Kari can this method be used to populate a HDD that plugged in to an existing installation, and once DISM is done move over the HDD to the Actual PC?

    Thanks in advance
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Tutorial Categories

Apply Windows Image using DISM Instead of Clean Install 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 Threads
Apply Windows 10 Enterprise image via USB in Installation and Upgrade
I have taken an image using DISM and it is in the .wim format. I want to apply it to a tablet using a usb stick, it has a UEFI Bios. in the past with windows 7 and I have been able to create a bootable usb drive by using Windows 7 USB DVD tool to...
This isn't a major problem, but I would just like to understand how it happened. Some background. This is a Windows 10 clean install on a new SSD drive. The original HDD is still in the computer with a corrupt version of Windows 8 on it. My...
Hi guys, so a few days ago my windows 10 crashed so I had to format and reinstall windows 7 then upgrade to windows 10, a hard work to do. So I started to search about how to capture the image of C: where the windows 10 is running and I found Dism....
Hi I installed Windows ADK 10 v1511 on Windows 10 v1511 Enterprise 64 bit. I typed the following commands: Dism /Apply-Image /ImageFile:"<wim_File_Path>\install.wim" /Index:1 /ApplyDir:"<Apply_Directory_Path>" /Verify /CheckIntegrity...
Solved creating usb pen for dism apply-image in Installation and Upgrade
I have managed to create a USB pen drive to apply WIM images using the DISM Apply-image command in 64bit so I know it can be done but any ideas how to create a pen to apply 32bit WIM images
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 23:06.
Find Us