Jump to content

Joca Wheeling

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Joca Wheeling

  1. My Script for deploy in uefi;

     

    rem These commands copy the selected image file to
    rem predefined hard disk partitions on a UEFI-based computer.
     
    rem Usage:   ApplyImage WimFileName 
    rem Example: ApplyImage E:\Images\ThinImage.wim
     
    rem === Copy the image to the recovery image partition =======================
    rem ==== copy %1 R:\install.wim
    \Waik_4_1\amd64\imagex.exe /ref \8.1_x64_custom\install*.swm /check /export \8.1_x64_custom\install.swm 1 R:\install.wim "8.1X64 Custom"
     
    rem === Apply the image to the Windows partition =============================
    dism /Apply-Image /ImageFile:R:\install.wim /Index:1 /ApplyDir:W:\
     
    rem === Copy the Windows RE Tools to the Windows RE Tools partition ==========
    md T:\Recovery\WindowsRE
    attrib W:\windows\system32\recovery\WinRE.wim -h -s -r
    copy W:\windows\system32\recovery\winre.wim T:\Recovery\WindowsRE\winre.wim
     
    rem === Copy boot files from the Windows partition to the System partition ===
    bcdboot W:\Windows /s s: /f ALL /l pt-br
     
    rem === In the System partition, set the location of the Windows partition ===
    W:\Windows\System32\reagentc /setosimage /path R: /target W:\Windows /index 1
     
    rem === In the System partition, set the location of the WinRE tools =========
    W:\Windows\System32\reagentc /setreimage /path T:\Recovery\WindowsRE /target W:\Windows
×
×
  • Create New...