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


the winpeshl.ini method is the simplest

Winpeshl.ini is also easy to change or delete or whatever

I have been using it for years in my pe adventures, typically something like this so pecmd.exe can run my instructions in the pecmd.ini file

Code:
[LaunchApp]
AppPath="Pecmd.exe Main %SystemDrive%\Windows\System32\Pecmd.ini"
 
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
The instructions are in the help file

pecmd-help.webp
 
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450

My Computer My Computer

At a glance

Windows 11 Enterprise 25H2
OS
Windows 11 Enterprise 25H2
winpeshl.ini is two lines drop it in with 7-zip. It is also very quick and easy to reverse

much easier than :

mounting the wim
loading the hive
making reg changes
unload hive
unmount and commit wim
 

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
And yet your post is six miles long.
 

My Computer My Computer

At a glance

Windows 11 Enterprise 25H2
OS
Windows 11 Enterprise 25H2
SIW2: Now I have a file called Directories.cmd that I would like to run from winpeshl.ini can you show this?

pseymour: its almost 12 miles long :)​

 

My Computer My Computer

At a glance

Windows 11 proI-7 2gigaherz16Gig
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
When I mount the boot.wim image should the index be one or two on the dism line
dism /Mount-Wim /WimFile:S:\wimfiles\boot.wim /Index:2 /MountDir:M:\mount
winpeshl.ini

[LaunchApp]
AppPath="%SystemDrive%\sources\setup.exe"
 

My Computer My Computer

At a glance

Windows 11 proI-7 2gigaherz16Gig
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
@hsehestedt @SIW2
: I would like to use

Winpeshl.ini file to run "diskpart /s disk.txt" and put both files in Windows\system32. do I put under [LauchApps] section of Winpeshl.ini​

 

My Computer My Computer

At a glance

Windows 11 proI-7 2gigaherz16Gig
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
@hsehestedt @SIW2
: I would like to use

Winpeshl.ini file to run "diskpart /s disk.txt" and put both files in Windows\system32. do I put under [LauchApps] section of Winpeshl.ini​


Before I answer your question, let me ask one question. You may very well have answered this somewhere in this thread, I just don't have time to read it all now :-)

Are you intending using an autounattend.xml along with the installation of Windows? It does not matter to me whether you plan to use the answer file to full install Windows or not.
 

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
I tried to do that, the setup didnt read the autounatted.xml. Also the disk partitioning in the autounattend wasn't done. In order for me to use the old setup, I can't. I am going to use a text file and winpeshl
In file to do the partitioning !
 

My Computer My Computer

At a glance

Windows 11 proI-7 2gigaherz16Gig
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
Thanks for the info. The reason that I was asking was simply because it occurred to me that you are doing this the hard way, but I get that you may have no choice but to do it another way if you cannot get the answer file to work.

I'll post a more detailed response later, but I am 60 seconds from having dinner served now so I'll say "adios" for the moment.
 

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
you could do something like

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


I use pecmd for almost everything but I have a vague recollection you need the quotes in winpeshl.ini

or put it in a batch file and call it. You could add it to startnet.cmd and call that instead of making a different cmd file if you like

it doesn't mention quotes here

but more recent one does


 
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
Will

[LauchApps]
%SYSTEMSRIVE%\Windows\System32\diskpart /s %SYSTEMDRIVE%\Windows\System32\,Disk.txt
Work?
 

My Computer My Computer

At a glance

Windows 11 proI-7 2gigaherz16Gig
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
doubt it but you can try
are you allergic to quotes ?

look at micorosoft example in the link I gave
 

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
I am using it just as you said will test on VMware!
 

My Computer My Computer

At a glance

Windows 11 proI-7 2gigaherz16Gig
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
[LaunchApp]
%SYSTEMDRIVE%\Windows\System32\diskpart.exe, "/s %SYSTEMDRIVE%\Windows\System32\diskpart.txt"
do I use the: [launchapp] ?

I packaged my winpeshl.ini, iso.cmd[a batch file to copy to a mount directory and diskpart.txt file. I am using the old setup and it still asks where i want to install it. Should it do that? Show these files go into the PE or Setup? [mine is setup] SHould I use strartnet.cmd?
 

Attachments

My Computer My Computer

At a glance

Windows 11 proI-7 2gigaherz16Gig
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
microsofts example


pay attention to

run in order of appearance, and don’t start until the previous app has terminated.


so presumably you want the shell %systemdrive%\sources\setup.exe to launch afterwards

winpeshl--ms.webp

they included the typo Wpeshl.ini :rolleyes:
 

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
I only use winpeshl.ini to start pecmd main. Then pecmd runs all the commands in pecmd.ini

If you are not using pecmd.exe, at a guess you could try something like this under


[LaunchApps]

microsoft example:

%SYSTEMDRIVE%\Fabrikam\app2.exe, /s "C:\Program Files\App3"

therefore:

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


you need to exit diskpart to do the MD commands. One way is put the MD comands in a batch file and run it after exiting diskpart

take all this stuff out of diskpart.txt and put it in a batchfile, named e.g. MyMD.cmd and call it from winpeshl.ini
Or if you want you can put them in startnet.cmd and call it from winpeshl.ini

MD " A:\Applications\Graphics"
MD " A:\Applications\Productivity"
MD " A:\Applications\Video"
MD " A:\Applications\DVD"
MD " A:\Applications\Multiplexor"
MD " A:\Applications\File Renamer"

etc
 
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
maybe

[LaunchApps]
%SYSTEMDRIVE%\Windows\System32\diskpart.exe, /s "%SYSTEMDRIVE%\Windows\System32\diskpart.txt"
MyMD.cmd
%systemdrive%\sources\setup.exe

I can vaguely remember running something, possibly startnet.cmd and then the shell both under [LaunchApps]. Long time ago.

Iirc if done that way a separate [LaunchApp] section is not needed. It is assumed the last entry is the shell. Or it is de facto the shell because it will stay open until you close it.

Try it and see
 
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
Back
Top Bottom