- Local time
- 6:25 PM
- Posts
- 7,198
- OS
- Windows 11 Pro + Win11 Canary VM.
Here is a simple batch file that creates a Windows 11 usb installation drive bypassing compatibility tests.
You need to download
1) Windows 10 installation iso (or create one using Windows 10 media creation tool)
2) Windows 11 installation iso (do not use media creation tool)
Then mount both as drives and note drive letters.
You need to edit these 3 lines
set ISO11=F <------------ set drive letter of Windows 11 iso
set ISO10=G <------------ set drive letter of Windows 10 iso
set USBDRIVE=99 <------------ set drive number of usb (run diskpart, list disk). Normally it will be same as number of hard drives (drives start at zero)
On my pc, I have 2 hard drives, drive 0, drive 1 and so usb drive is drive 3. Always check with diskpart.
Copy code below to a batch file in user directory e.g. W11BypassChecks.Bat
Edit the three lines as above.
Then run batch file with admin rights.
You will create a bootable usb drive that bypasses Windows 11 TPM checks.
You need to download
1) Windows 10 installation iso (or create one using Windows 10 media creation tool)
2) Windows 11 installation iso (do not use media creation tool)
Then mount both as drives and note drive letters.
You need to edit these 3 lines
set ISO11=F <------------ set drive letter of Windows 11 iso
set ISO10=G <------------ set drive letter of Windows 10 iso
set USBDRIVE=99 <------------ set drive number of usb (run diskpart, list disk). Normally it will be same as number of hard drives (drives start at zero)
On my pc, I have 2 hard drives, drive 0, drive 1 and so usb drive is drive 3. Always check with diskpart.
Copy code below to a batch file in user directory e.g. W11BypassChecks.Bat
Edit the three lines as above.
Then run batch file with admin rights.
You will create a bootable usb drive that bypasses Windows 11 TPM checks.
Code:
echo on
REM =========================================================================================
REM ======BIG WARNING - FIRST TWO PARAMETERS MUST BE CONFIGURED CORRECTLY ===================
REM =========================================================================================
REM SET DRIVE NUMBER OF MOUNTED USB DRIVE - WARNING THIS MUST BE CORRECT.
REM IT IS USUALLY LAST ONE IN DRIVE NUMBER LIST
REM VERY BIG WARNING - IF YOU CHOOSE WRONG DRIVE YOU WILL WIPE IT!!!
REM SET TO 99 INITIALLY TO PREVENT RISK OF ACCIDENTAL DELETION
set USBDRIVE=99
REM SET DRIVE LETTER OF MOUNTED DRIVE - IF DRIVE LETTER IS WRONG, BATCH WILL NOT WORK.
REM Windows 11 iso must contain install.wim
set ISO11=F
REM Windows 10 iso can have install.wim or install.esd
set ISO10=G
REM =========================================================================================
REM ================== ALL OTHER PARAMETERS CAN NOMRALLY BE LEFT ALONE ======================
REM ============== ONLY CHANGE DRIVE LETTERS IF NEEDED E.G. USED ELSEWHERE ==================
REM =========================================================================================
REM SET DRIVE OF TEMPORARY FILES
set USBTDRV=C
REM SET DRIVE LETTER OF FAT32 PARTITION
set FAT32=Q
REM SET DRIVE LETTER OF NTFS PARTITION
set NTFS=R
REM CREATE WORKING DIRECTORY
%USBTDRV%:
cd\
rd usbcreate /s /q
md usbcreate
pause
REM LIST DISKS AND CHECK USB DRIVE NUMBER IS SET
echo LIST DISK > %USBTDRV%:\usbcreate\listdisk.txt
CLS
diskpart /s %USBTDRV%:\usbcreate\listdisk.txt
IF %USBDRIVE%==99 goto :NOTSET
pause
GOTO :CONT1
:NOTSET
echo off
echo.
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
echo X X
echo X YOU HAVE NOT SET DRIVE NUMBER OF USB DRIVE X
echo X IT IS USUALLY LAST ONE IN THE ABOVE LIST BUT CAN DIFFER X
echo X X
echo X MAKE SURE USB DRIVE IS PLUGGED IN X
echo X X
echo X WARNING - MAKE SURE DRIVE NUMBER IS RIGHT X
echo X OR ELSE YOU COULD WIPE WRONG DRIVE X
echo X X
echo X I ACCEPT NO RESPONSIBILITY FOR ANY MISTAKES X
echo X YOU HAVE BEEN WARNED!!!!! X
echo X X
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
PAUSE
GOTO :ENDPROG
:CONT1
REM CREATE EI.CFG
echo [CHANNEL] > %USBTDRV%:\usbcreate\ei.cfg
echo Retail >> %USBTDRV%:\usbcreate\ei.cfg
REM FORMAT USB DRIVE
echo select disk %USBDRIVE% > %USBTDRV%:\usbcreate\formatdisk.txt
echo clean >> %USBTDRV%:\usbcreate\formatdisk.txt
echo convert mbr >> %USBTDRV%:\usbcreate\formatdisk.txt
echo create partition primary size=2000 >> %USBTDRV%:\usbcreate\formatdisk.txt
echo create partition primary >> %USBTDRV%:\usbcreate\formatdisk.txt
echo select partition 1 >> %USBTDRV%:\usbcreate\formatdisk.txt
echo format fs=fat32 quick >> %USBTDRV%:\usbcreate\formatdisk.txt
echo assign letter=Q >> %USBTDRV%:\usbcreate\formatdisk.txt
echo active >> %USBTDRV%:\usbcreate\formatdisk.txt
echo select partition 2 >> %USBTDRV%:\usbcreate\formatdisk.txt
echo format fs=NTFS quick >> %USBTDRV%:\usbcreate\formatdisk.txt
echo assign letter=R >> %USBTDRV%:\usbcreate\formatdisk.txt
echo exit >> %USBTDRV%:\usbcreate\formatdisk.txt
diskpart /s %USBTDRV%:\usbcreate\formatdisk.txt
pause
REM CREATE DRIVE
cd \usbcreate
md baseiso
xcopy %ISO10%:\*.* %USBTDRV%:\usbcreate\baseiso\ /s /y
REM COPY ALL FILES TO NTFSFOLDER
label %NTFS%:USB-NTFS
%USBTDRV%:
cd \usbcreate\baseiso
xcopy *.* %NTFS%:\ /s /y
xcopy %USBTDRV%:\usbcreate\ei.cfg %NTFS%:\sources /s /y
pause
REM Overwrite delete install.wim and install.esd and copy win11 install.wim to usb drive
del %NTFS%:\sources\install.wim /q
del %NTFS%:\sources\install.esd /q
xcopy %ISO11%:\sources\install.wim %NTFS%:\sources\install.* /s /y
pause
REM COPY ALL FILES EXCEPT THOSE IN SOURCES FOLDER (DELETE FROM BASEISO)
label %FAT32%:USB-FAT32
del %USBTDRV%:\usbcreate\baseiso\sources\*.* /q
cd %USBTDRV%:\usbcreate\baseiso
rd sources /s /q
%USBTDRV%:
cd \usbcreate\baseiso
xcopy *.* %FAT32%:\ /s /y
cd %FAT32%:\
md sources
xcopy %NTFS%:\sources\boot.wim %FAT32%:\sources\boot.* /s /y
REM DELETE WORKING DIRECTORY
%USBTDRV%:
cd\
rd usbcreate /s /q
:ENDPROG
pause
My Computer
System One
-
- OS
- Windows 11 Pro + Win11 Canary VM.
- Computer type
- Laptop
- Manufacturer/Model
- ASUS Zenbook 14
- CPU
- I9 13th gen i9-13900H 2.60 GHZ
- Motherboard
- Yep, Laptop has one.
- Memory
- 16 GB soldered
- Graphics Card(s)
- Integrated Intel Iris XE
- Sound Card
- Realtek built in
- Monitor(s) Displays
- laptop OLED screen
- Screen Resolution
- 2880x1800 touchscreen
- Hard Drives
- 1 TB NVME SSD (only weakness is only one slot)
- PSU
- Internal + 65W thunderbolt USB4 charger
- Case
- Yep, got one
- Cooling
- Stella Artois (UK pint cans - 568 ml) - extra cost.
- Keyboard
- Built in UK keybd
- Mouse
- Bluetooth , wireless dongled, wired
- Internet Speed
- 900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
- Browser
- Edge
- Antivirus
- Defender
- Other Info
- TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)
Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)