none
Deploying WIM Image from USB RRS feed

  • Question

  • Good evening everyone, 

    I've spent the past three days trying to find a good way to deploy my image from a USB file. This is for our level one technicians, so I'm trying to minimize the amount of CMD line work they have to do. I've been using the microsoft Technet articles, and currently have a WinPE USB created with a separate Image partition containing the image file. The issue is, I can't get the scripts to see the Win10_1903.wim file in the images directory. 

    This is my current attempt to have the script automatically find the correct drive letter:


    @echo Find a drive that has a folder titled Images.
    @for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do @if exist %%a:\Images\ set IMAGESDRIVE=%%a
    @echo The Images folder is on drive: %IMAGESDRIVE%
    @dir %IMAGESDRIVE%:\Images /w
    ApplyImage %IMAGESDRIVE%:\Images\Win10_New.wim

    It does not seem to be working inside WinPE. The error is the standard 'The system cannot find the path specified'

    Any ideas would be greatly appreciated. 

    P.S. - Unfortunately all of our locations have very small pipes, so pushing over the network from the WDS server is not an option. 

    Relocated from Scripting Forum to MDT Forum

    Friday, December 6, 2019 3:12 PM

All replies

  • Please Check this

    https://www.anoopcnair.com/sysprep-capture-windows-10-image-using-dism/

    Create a WinPE ISO and boot device with WinPE, Run Command line to apply Image

    https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim#apply-the-image

    Sunday, December 8, 2019 1:34 AM
  • Please Check this

    https://www.anoopcnair.com/sysprep-capture-windows-10-image-using-dism/

    Create a WinPE ISO and boot device with WinPE, Run Command line to apply Image

    https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim#apply-the-image

    I have already been using that Docs article for both capturing and applying the image. The issue occurring, is that the script fails to run because it is unable to see the image, on another partition on the same USB. Hence, my original issue with scripting a way for WinPE to recognize the 'Images' partition on the USB. 
    Monday, December 9, 2019 2:27 PM
  • I used a different approached that works fine for me (although we're not booting UEFI but give it a try)

    Try using Rufus to build your bootable flash drive. Download the tool, 

    • Set boot selection to disk or ISO then click Select to point to the ISO file mdt offline media creates
    • Select Target System (I use BIOS or UEFI)
    • Enter the volume label you want for the flash drive
    • I believe everything else use default values

    Rufus builds the flash drive. And it works for me using an 11GB .wim file



    Sunday, December 15, 2019 7:40 PM
  • Check this Article to Deploy WIM Files using USB
    Thursday, December 26, 2019 11:10 AM