Win 10 batch(.cmd) file run during install before oobe to exe files


  1. Posts : 129
    Windows 10 Pro
       #1

    Win 10 batch(.cmd) file run during install before oobe to exe files


    I have a batch file and autounattend.xml file how do i run a .cmd file that runs 20 driver files before oobe needs them? Can i put them in synchronous or ASyncronous in the audit or the windowpe? Tia jtm
    Windows 10
      My Computer


  2. Posts : 6,345
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #2

    You want to slipstream 20 drivers to a Win 10 installation drive?

    Use Dism
    This was a tutorial to slipstream drivers to Win 7. It is the same for Win 10.
    I have used to slipstream Intel RST drivers to a Win 11 installation files (Boot.wim and Install.wim).
    Create a Windows 7 USB flash installation with new drives for new MB's - Windows 7 Forums
      My Computers


  3. Posts : 129
    Windows 10 Pro
    Thread Starter
       #3

    My drivers are in exe format and batch(cmd) to run them. Can this be done during windows 10 installation? John
      My Computer


  4. Posts : 15,494
    Windows10
       #4

    RBCC said:
    My drivers are in exe format and batch(cmd) to run them. Can this be done during windows 10 installation? John
    Install the drivers, then export them using dism and they will be in .inf format, and can then be added using dism to installation.wim and/or boot.wim as required.
      My Computer


  5. Posts : 6,345
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #5

    If the drivers are the same as already installed on your computer, @cereberus gave an excellent suggestion. You can extract them as *.inf, *.sys, *.cat etc
    Backup and Restore Device Drivers in Windows 10

    Once you have them use Dism to slipstream into Install.wim

    The Install.Wim index is:
    INDEX="1" Windows 10 Home
    INDEX="2" Windows 10 Home Single Language
    INDEX="3" Windows 10 Education
    INDEX="4" Windows 10 Pro
    INDEX="5" Windows 10 Pro Education
    INDEX="6" Windows 10 Pro for Workstations
      My Computers


  6. Posts : 15,494
    Windows10
       #6

    Megahertz said:
    If the drivers are the same as already installed on your computer, @cereberus gave an excellent suggestion. You can extract them as *.inf, *.sys, *.cat etc
    Backup and Restore Device Drivers in Windows 10

    Once you have them use Dism to slipstream into Install.wim

    The Install.Wim index is:
    INDEX="1" Windows 10 Home
    INDEX="2" Windows 10 Home Single Language
    INDEX="3" Windows 10 Education
    INDEX="4" Windows 10 Pro
    INDEX="5" Windows 10 Pro Education
    INDEX="6" Windows 10 Pro for Workstations
    That is not order on standard iso - you missed out the N versions.

    1="Windows 10 Home"
    2="Windows 10 Home N"
    3="Windows 10 Home Single Language"
    4="Windows 10 Education"
    5="Windows 10 Education N"
    6="Windows 10 Pro"
    7="Windows 10 Pro N"
    8="Windows 10 Pro Education"
    9="Windows 10 Pro Education N"
    10="Windows 10 Pro for Workstations"
    11="Windows 10 Pro for Workstations N"


    to find versions on install.wim, run this from an admin command prompt, changing e:\sources to wherever install.wim is stored.

    Code:
    dism /Get-WimInfo /WimFile:e:\sources\install.wim
      My Computer


  7. Posts : 6,345
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #7

    @cereberus, I found a strange situation:
    - From an old Win 10_1904_PT-BR iso with install.esd I found what I've posted
    - From a Win10_22H2_EN-US iso with install.wim I found what you've posted.
    - From a Win10_22H2_EN-US iso with install.esd I found that it only has 7 images

    Win 10 22h2 EN-US Install.esd
    1="Windows 10 Home"
    2="Windows 10 Home N"
    3="Windows 10 Home Single Language"
    4="Windows 10 Education"
    5="Windows 10 Education N"
    6="Windows 10 Pro"
    7="Windows 10 Pro N"

    It seems that the Install.esd has less images on it than the Install.wim of the same Win10 version
    Last edited by Megahertz; 06 Feb 2024 at 08:21.
      My Computers


  8. Posts : 15,494
    Windows10
       #8

    Megahertz said:
    @cereberus, I found a strange situation:
    - From an old Win 10_1904_PT-BR iso with install.esd I found what I've posted
    - From a Win10_22H2_EN-US iso with install.wim I found what you've posted.
    - From a Win10_22H2_EN-US iso with install.esd I found that it only has 7 images

    Win 10 22h2 EN-US Install.esd
    1="Windows 10 Home"
    2="Windows 10 Home N"
    3="Windows 10 Home Single Language"
    4="Windows 10 Education"
    5="Windows 10 Education N"
    6="Windows 10 Pro"
    7="Windows 10 Pro N"

    It seems that the Install.esd has less images on it than the Install.wim of the same Win10 version
    Yeah install.esd is created from the Media Creation tool designed for domestic users and does not include the workstation skus geared for corporate use.

    Also, this helps keep install.esd less than 4 GB making creation of a usb installation drive easier.
      My Computer


 

  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 13:27.
Find Us




Windows 10 Forums