locked
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. 

    Thursday, December 5, 2019 9:31 PM

All replies

  • It is likely that the environment variables are blank.

    Post WIM and PE issues in the Deployment forum for help.  These are not scripting related questions.  It is likely that your PE is not set up correctly for the batch commands since there is nothing wrong with the commands.


    \_(ツ)_/

    Thursday, December 5, 2019 10:28 PM
  • I will do so, thank you for the response. 

    Friday, December 6, 2019 3:08 PM