- Local time
- 12:53 AM
- Posts
- 280
- OS
- Window 11 v24H2 Build 26100.2033
Welcome here everyone. Thanks to https://gemini.google.com/ which helped me to create this project without powershell commands.
1. Download media creation tool and prepare installation media usb for Windows 11 v25H2. I am considering .swm file system here. Any bootble usb having install.wim or install.esd can be used here. The purpose is to install Windows 11 v25H2 on an unsupported pc hardware avoiding error message. Please note that other easy methods are available. This is an alternate automated method to install Windows 11 v25H2 on an unsupported pc hardware avoiding error message "This pc can't install Windows 11".
2. We have to work with startnet.cmd and winpeshl.ini files in boot.wim in sources folder of bootable usb created by media creation tool. Sources folder has install.swm and install2.swm files. I am attaching modified startnet.cmd, modified winpeshl.ini and Bypass.cmd in zip file. To view them, right click >show more options>edit. You can select all contents to copy and then paste in mounted directory in right place as told , using commands syntax correctly.
3. Create a file named startnet.cmd in notepad. {Files>All Files and saved as ANSI coding.} Paste following code in this file. It will work as an automated script when booted on MBR and GPT disks installing Windows 11 v2H2 on an unsupported pc hardware. It works perfectly on BIOS and UEFI systems. In addition, it works for install.wim and install.esd files.
@echo off
:: Initialize hardware environment
X:\Windows\System32\wpeinit.exe
:: Give USB drivers a moment to initialize
timeout /t 3 >nul
o
title UNIVERSAL 25H2 DEPLOYER
color 17
echo ===================================================
echo SCANNING ALL DRIVES (Z-C) FOR MEDIA
echo ===================================================
:SEARCH
set "USB="
:: Scan for the Bypass script to identify the USB drive letter
for %%d in (Z Y X W V U T S R Q P O N M L K J I H G F E D C) do (
if exist %%d:\Bypass.cmd set "USB=%%d"
)
if "%USB%"=="" (
echo [!] Searching... please insert USB media.
timeout /t 5 >nul
goto SEARCH
)
:: SUCCESS ALERT: Green background + System Beep
color 2F
echo
echo ===================================================
echo [SUCCESS] FOUND MEDIA ON DRIVE %USB%:
echo ===================================================
:: Inject the hardware bypasses
echo [1/2] Injecting Registry Bypasses...
call %USB%:\Bypass.cmd
:: Detect file format (WIM, SWM, or ESD)
set "EXT=wim"
if exist %USB%:\sources\install.swm set "EXT=swm"
if exist %USB%:\sources\install.esd set "EXT=esd"
:: Launch the Setup Engine
echo [2/2] Launching Windows Setup Engine (.%EXT%)...
cd /d %USB%:\sources
setup.exe /installfrom:%USB%:\sources\install.%EXT%
:: Safety catch to prevent instant reboot on failure
if %errorlevel% neq 0 (
color 4F
echo.
echo [ERROR] Setup exited with code: %errorlevel%
pause
)
Now run CMD as an administrator.
4. C:\Windows\System32>dism /mount-image /imagefile
:\sources\boot.wim /index:2 /mountdir:C:\mount
Deployment Image Servicing and Management tool
Version: 10.0.28000.4
Mounting image
[==========================100.0%==========================]
The operation completed successfully.
5. C:\Windows\System32>dism /image:C:\mount /set-scratchspace:512
Deployment Image Servicing and Management tool
Version: 10.0.28000.4
Image Version: 10.0.26100.7623
Scratch Space : 512MB
The operation completed successfully.
This is very important step in this project.
6.C:\Windows\System32>notepad C:\mount\Windows\System32\startnet.cmd
Delete original contents in it, if any, and paste above code. Click File and Save. Close opened file explorer.
7. Create winpeshl.ini with following contents in Notepad with ANSI coding , All files types.
[LaunchApp]
AppPath = %SYSTEMROOT%\System32\startnet.cmd
Place this winpeshl.ini in C:\mount\Windows\System32. Remember to create winpeshl.ini if does not exist and replace old contents if exists. Check contents of winpeshl.ini by following command.
C:\Windows\System32>type C:\mount\Windows\System32\winpeshl.ini
Output should be as follow:-
[LaunchApp]
AppPath = %SYSTEMROOT%\System32\startnet.cmd
This is very important step in this project.
8.C:\Windows\System32>dism /unmount-image /mountdir:C:\mount /commit
Deployment Image Servicing and Management tool
Version: 10.0.28000.4
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.
9. Remember to unmount index 2 after closing all opened files, folders/explorer/notepad.
10. Repeat steps 4 to 8 for index 1 also. Follow step 9 for index 1 also.
11. Place Bypass.cmd in root drive of boot disk. Contents of Bypass.cmd are as follow:-
@echo off
:: Use /f to force overwrite and avoid prompts
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassSecureBootCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassRAMCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassCPUCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassStorageCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /t REG_DWORD /d 1 /f
echo [DONE] Hardware bypasses applied to registry.
12.Now boot from this modified boot disk . It should install Windows 11 v25H2 on any unsupported pc hardware.
Thank you for reading and sharing your valuable time in this post.
Special thanks to https://gemini.google.com/
Link to my conversation is https://gemini.google.com/app/e221d3dff43c045d
1. Download media creation tool and prepare installation media usb for Windows 11 v25H2. I am considering .swm file system here. Any bootble usb having install.wim or install.esd can be used here. The purpose is to install Windows 11 v25H2 on an unsupported pc hardware avoiding error message. Please note that other easy methods are available. This is an alternate automated method to install Windows 11 v25H2 on an unsupported pc hardware avoiding error message "This pc can't install Windows 11".
2. We have to work with startnet.cmd and winpeshl.ini files in boot.wim in sources folder of bootable usb created by media creation tool. Sources folder has install.swm and install2.swm files. I am attaching modified startnet.cmd, modified winpeshl.ini and Bypass.cmd in zip file. To view them, right click >show more options>edit. You can select all contents to copy and then paste in mounted directory in right place as told , using commands syntax correctly.
3. Create a file named startnet.cmd in notepad. {Files>All Files and saved as ANSI coding.} Paste following code in this file. It will work as an automated script when booted on MBR and GPT disks installing Windows 11 v2H2 on an unsupported pc hardware. It works perfectly on BIOS and UEFI systems. In addition, it works for install.wim and install.esd files.
@echo off
:: Initialize hardware environment
X:\Windows\System32\wpeinit.exe
:: Give USB drivers a moment to initialize
timeout /t 3 >nul
o
title UNIVERSAL 25H2 DEPLOYER
color 17
echo ===================================================
echo SCANNING ALL DRIVES (Z-C) FOR MEDIA
echo ===================================================
:SEARCH
set "USB="
:: Scan for the Bypass script to identify the USB drive letter
for %%d in (Z Y X W V U T S R Q P O N M L K J I H G F E D C) do (
if exist %%d:\Bypass.cmd set "USB=%%d"
)
if "%USB%"=="" (
echo [!] Searching... please insert USB media.
timeout /t 5 >nul
goto SEARCH
)
:: SUCCESS ALERT: Green background + System Beep
color 2F
echo
echo ===================================================
echo [SUCCESS] FOUND MEDIA ON DRIVE %USB%:
echo ===================================================
:: Inject the hardware bypasses
echo [1/2] Injecting Registry Bypasses...
call %USB%:\Bypass.cmd
:: Detect file format (WIM, SWM, or ESD)
set "EXT=wim"
if exist %USB%:\sources\install.swm set "EXT=swm"
if exist %USB%:\sources\install.esd set "EXT=esd"
:: Launch the Setup Engine
echo [2/2] Launching Windows Setup Engine (.%EXT%)...
cd /d %USB%:\sources
setup.exe /installfrom:%USB%:\sources\install.%EXT%
:: Safety catch to prevent instant reboot on failure
if %errorlevel% neq 0 (
color 4F
echo.
echo [ERROR] Setup exited with code: %errorlevel%
pause
)
Now run CMD as an administrator.
4. C:\Windows\System32>dism /mount-image /imagefile
Deployment Image Servicing and Management tool
Version: 10.0.28000.4
Mounting image
[==========================100.0%==========================]
The operation completed successfully.
5. C:\Windows\System32>dism /image:C:\mount /set-scratchspace:512
Deployment Image Servicing and Management tool
Version: 10.0.28000.4
Image Version: 10.0.26100.7623
Scratch Space : 512MB
The operation completed successfully.
This is very important step in this project.
6.C:\Windows\System32>notepad C:\mount\Windows\System32\startnet.cmd
Delete original contents in it, if any, and paste above code. Click File and Save. Close opened file explorer.
7. Create winpeshl.ini with following contents in Notepad with ANSI coding , All files types.
[LaunchApp]
AppPath = %SYSTEMROOT%\System32\startnet.cmd
Place this winpeshl.ini in C:\mount\Windows\System32. Remember to create winpeshl.ini if does not exist and replace old contents if exists. Check contents of winpeshl.ini by following command.
C:\Windows\System32>type C:\mount\Windows\System32\winpeshl.ini
Output should be as follow:-
[LaunchApp]
AppPath = %SYSTEMROOT%\System32\startnet.cmd
This is very important step in this project.
8.C:\Windows\System32>dism /unmount-image /mountdir:C:\mount /commit
Deployment Image Servicing and Management tool
Version: 10.0.28000.4
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.
9. Remember to unmount index 2 after closing all opened files, folders/explorer/notepad.
10. Repeat steps 4 to 8 for index 1 also. Follow step 9 for index 1 also.
11. Place Bypass.cmd in root drive of boot disk. Contents of Bypass.cmd are as follow:-
@echo off
:: Use /f to force overwrite and avoid prompts
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassSecureBootCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassRAMCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassCPUCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassStorageCheck" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /t REG_DWORD /d 1 /f
echo [DONE] Hardware bypasses applied to registry.
12.Now boot from this modified boot disk . It should install Windows 11 v25H2 on any unsupported pc hardware.
Thank you for reading and sharing your valuable time in this post.
Special thanks to https://gemini.google.com/
Link to my conversation is https://gemini.google.com/app/e221d3dff43c045d
Attachments
Last edited:
My Computer
At a glance
Window 11 v24H2 Build 26100.2033Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz4.00 GB (3.89 GB usable)Onboard
- OS
- Window 11 v24H2 Build 26100.2033
- Computer type
- PC/Desktop
- Manufacturer/Model
- ASSEMMBLED
- CPU
- Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
- Motherboard
- ZEBRONICS
- Memory
- 4.00 GB (3.89 GB usable)
- Graphics Card(s)
- Onboard
- Sound Card
- Onboard
- Monitor(s) Displays
- LG
- Screen Resolution
- 1366x768
- Hard Drives
- Toshiba HDD 1 TB
- Keyboard
- Mechanical
- Mouse
- Mechanical
- Internet Speed
- 700 kb/s
- Browser
- Microsoft EDGE, CHROME
- Antivirus
- Microsoft Defender




