Jump to content

Recommended Posts

Posted (edited)

I would like to put these lines in a batch file and run it through winpeshl.ini :

in a file called os.bat

DISM /Mount-Wim /wimfile:D:\path\to\boot.wim /index:2 /mountdir:C:\Mount 
reg load HKLM\TEMP C:\Mount\Windows\System32\config\SYSTEM 
reg add HKLM\TEMP\Setup /v "CmdLine" /t REG_SZ /d "X:\\sources\\setup.exe" /f reg 
unload HKLM\TEMP DISM /Unmount-Wim /mountdir:C:\Mount /commit

in a batch file:mds

@ECHO OFF
:START
MD " A:\Applications"
MD " A:\Applications\Graphics\Adobe"
MD " A:\Applications\Graphics\Corel"
MD "A:\Applications\Graphics\Other"
:End

This in a text file call "partitions.txt"

sel dis 0
cle 
Convert GPT 
cre par efi size=260 
for quick fs=fat32 label="System" 
a** letter="S" 
cre par msr size=16 

a batch file call :  diskpart.bat

%SYSTEMDRIVE%\Windows\System32\diskpart.exe, "/s %SYSTEMDRIVE%\Windows\System32\partitions.txt"

strartnet.cmd:

reg add "HKLM\SYSTEM\Setup\LabConfig" /f /v "BypassTPMCheck" /t REG_DWORD /d 1
reg add "HKLM\SYSTEM\Setup\LabConfig" /f /v "BypassSecureBootCheck" /t REG_DWORD /d 1
reg add "HKLM\SYSTEM\Setup\LabConfig" /f /v "BypassRAMCheck" /t REG_DWORD /d 1

All this stuff will go into boot:2[boot]. could someone put it into the proper order and show  where this goes?  

Dism /apply-image /imagefile:%usbletter%:\sources\install.wim /index:6 /ApplyDir:C:\

bcdboot c:\windows /s S: /f all

lang,bat 

Dism /mount-image /imagefile:C:\my_distribution\sources\boot.wim /index:2 /mountdir:C:\Mount\boot
Dism /image:C:\mount\boot /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\fr-fr\lp.cab"
Dism /unmount-image /mountdir:C:\mount\boot /commit

All this stuff will go into boot:2[boot]. could someone put it into the proper order and show  where this goes?  

Thank your for your help

Edited by Rbcc56
revision

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...