How do I bypass the New Windows Install and only have to Old Setup?


If esp? #47 has been allocated S and windows partition has been allocated C?
 

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD
Great support
 

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD
Have you done it now?
 

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-9400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Here's what I have and I injected into boot.wim #2
winpeshl.ini
-------------
startnet.cmd
%systemdrive%\sources\setup.exe
%SYSTEMDRIVE%\Windows\System32\diskpart.exe, /s "%SYSTEMDRIVE%\Windows\System32\partitions.txt"
MakeDir.cmd

startnet.cmd
Dism /apply-image /imagefile:%usbletter%:\sources\install.wim /index:6 /ApplyDir:C:\
bcdboot c:\windows /s S: /f all

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

It reboot and restarts windows setup!

Where did I go wrong?
Thanks, John
 

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD
winpeshl.ini
-------------
startnet.cmd
%systemdrive%\sources\setup.exe
%SYSTEMDRIVE%\Windows\System32\diskpart.exe, /s "%SYSTEMDRIVE%\Windows\System32\partitions.txt"
MakeDir.cmd


Where did I go wrong?

Your winpeshl.ini is the wrong order

%systemdrive%\sources\setup.exe should be the last entry

[LaunchApps]
partioning.cmd
apply-image.cmd
make-dir.cmd
%systemdrive%\sources\setup.exe

I already said that in post #38

ohdear.webp

Attach files
 
Last edited:

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-9400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
startnet.cmd
Dism /apply-image /imagefile:%usbletter%:\sources\install.wim /index:6 /ApplyDir:C:\
bcdboot c:\windows /s S: /f all

that wont work because you havent given a value to the variable %usbletter%

I explained how to do that with the tagfile named fartyname.txt see post #45

 

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-9400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
You shouldnt need this line in red in winpeshl.ini
%SYSTEMDRIVE%\Windows\System32\diskpart.exe, /s "%SYSTEMDRIVE%\Windows\System32\partitions.txt"

if you include it in your partitioning.cmd file

see post #60

partitition-cmd.webp
 
Last edited:

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-9400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Am I explaining this poorly ? Garlin and hsehes do you follow ?
 

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-9400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Am I explaining this poorly ?
You're doing fine.
@Rbcc has a bad habit of rewriting your examples by changing the arguments, or running commands out of order.

Garlin and hsehes do you follow ?
I would refer you to this WinPE flowchart:
Windows PE startup sequence explained

Some problems can be avoided by using boot.wim index #2 (no Setup), and completely replacing what Setup normally does with your own script. You're basically almost there.

winpe_startup_flowchart.webp

Replacing Setup using boot.wim (index 1):

Write a startnet.cmd which calls:
1. wpeinit
2. Create and run a diskpart script
3. DISM /apply-image to C:\
4. bcdboot /s C:\Windows
5. Copy answer file from media to C:\Windows\Panther (edit file to assume you're starting at specialize pass, skipping WinPE pass)
5. shutdown /r (reboot into specialize pass)

winpeshl.ini is generally used to call higher-level deployment tools. While you can use it to run a script, you might as well leave winpesh.ini empty and have winpeshl fall back to run startnet.cmd.

The only difference is it's assumed startnet.cmd will run wpeinit, and winpeshl doesn't run wpeinit (because the MDT and SCCM deployment tools will handle their own initialization steps).
 

My Computer

System One

  • OS
    Windows 7
The scripts obviously should go in 2\windows\system32 except the tagfile which should be on the root of the usb stick

I have mentioned before that flowchart is wrong
 

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-9400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450

@SIW2:​

I am in the middle of my 8th edit of partitions.txt, I can't figure out why it creates the first three partitions but not the partitions that I have added! You're doing a super job, I tend to get confused and or frustrated when something doesn't work!
I have attached 2 files in one 7 zip file called myfiles.7z
 

Attachments

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD
that is yours below.

dont want
diskpart.exe /s X:\partitions.txt
pause

in the text file . It goes in batch file which has the .cmd extension


It is strange to have the winre partition at the start of the disk. And it is too small

Code:
select disk 0
clean
Convert GPT
create partition primary size=450
format fs=ntfs quick label=WinRE
set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac

create partition efi size=100
format fs=fat32 quick label=System

create partition msr size=16
format fs=fat32 quick label=System


create partition primary Size=146484
format  fs=ntfs quick label= Windows
assign letter = C

create partition primary SIZE=48828
format  fs=ntfs quick  label= Applications   
assign letter = A

create partition primary Size=122420
format  fs=ntfs quick  label=Downloads
assign letter = D

create partition primary Size=107421
format fs=ntfs quick label=Temp 
assign letter =T

create partition primary Size=48252
format  fs=ntfs quick label=Utilities
assign letter = U

diskpart.exe /s X:\partitions.txt
pause
 

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-9400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
will WinRE, efiand msr be made atomatically by windows?
 

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD

Latest Support Threads

Back
Top Bottom