Skip to content

Instantly share code, notes, and snippets.

@djibe
Last active September 6, 2026 13:14
Show Gist options
  • Select an option

  • Save djibe/87b6ae5157c309fb611b428445e9fce9 to your computer and use it in GitHub Desktop.

Select an option

Save djibe/87b6ae5157c309fb611b428445e9fce9 to your computer and use it in GitHub Desktop.
Install Windows 11 25H2 without TPM and Secure Boot requirements

Install Windows 11 25H2 without TPM and Secure Boot requirements

Alternative: use FlyoobeApp.zip (FlyOOBE) to create an customized ISO.

  1. Create a Windows 11 ISO with Microsoft's Media Creation Tool
  2. Install Setup Patchium and run it (or try latest Rufus version directly and patch from there)
  3. Home tab: Select ISO, wait during processing
  4. Go to Install > Uncheck Remove upgrade and Check Disable Windows 11 compatibility restrictions, click Apply
  5. Optional: To install without a Microsoft account, go to Install OOBE tab. Click Integrate lumOOBE. This will break sysinstall.
  6. Click on Create ISO button
  7. Use Rufus or Ventoy (prefered) to run installation from a USB drive

Upgrade Windows 11

You need 10 GB of free space on disk.

Uninstall any Antivirus (can cause BSOD after migration). Reinstall once its done.

  1. Download FlyoobeApp.zip (FlyOOBE).
  2. Unzip archive and launch "FlyOOBE.exe".
  3. In the Upgrade to Windows 11 section, click on Details > Run.
  4. Follow steps to download the ISO, select the download folder. FlyOOBE does all the tricks.
  5. Follow Windows upgrade tutorial

Want to create a script to configure Windows ? Use WinScript

@ohlalayeah

Copy link
Copy Markdown

Hello.

How to do at Step 4 of upgrading Windows 11?

@djibe

djibe commented Dec 14, 2024

Copy link
Copy Markdown
Author

Once you unzip MediaCreationTool.bat, go to the /bypass11 folder.
Then right click on Skip_TPM_Check_on_Dynamic_Update.cmd and Run as admin.

Then launch the Win11 installer from a mounted ISO

@AndrewBienhaus

AndrewBienhaus commented Jan 16, 2025

Copy link
Copy Markdown

Hello - and thanks for the short and to the point explanation. :-)

Once installed fresh, using the no microsoft account method, it would seem that using sysprep to OOBE the machine, doesn't work,
Is there something somewhere, that once "ready to go", I can delete from the new install, so that sysprep will then run the whole OOBE experience, and I can use that to setup the user properly?

thanks much!
Andrew

PS: the why.... is that the OOBE is nice for a fresh machine for resale... or... to trigger the "we found your old install, would you like to restore settings from MS?" options that come up, particularly when you're replacing a failed hard drive on a customer machine. :-)

@djibe

djibe commented Jan 17, 2025

Copy link
Copy Markdown
Author

Hi @AndrewBienhaus.

  • Did you succeed ?
  • Did you use Microsoft ISO or it failed with lumOOBE ?

@AndrewBienhaus

AndrewBienhaus commented Jan 17, 2025

Copy link
Copy Markdown

Hello!
I both have and have not suceeded, depending on your perspective. :-)

I used the Microsoft ISO, with your instructions above, to make my USB stick, and have used it many times now, and was very happy that I didn't have to fight with the mandatory microsoft account, etc., and can go straight to 24h2.
So, I believe that is using the lumOOBE.

But, once installed, booted, running, updated, with all the drivers in place, and the system the way I like it... in the past before 24h2/lumOOBE... I would sysprep a system, so the user could then take their machine back, and walk through the steps on their own, with their own MS account.
I was giving them a "fresh" machine.

With your lumOOBE enabled, is there any way to remove that, once the system is running?
So that sysprep will work again?

Merci!
andrew

@djibe

djibe commented Jan 18, 2025

Copy link
Copy Markdown
Author

@AndrewBienhaus Do you succeed with this ? (use a translator ;)): https://www.it-connect.fr/effectuer-sysprep-windows-11-24h2/

@AndrewBienhaus

AndrewBienhaus commented Jan 20, 2025

Copy link
Copy Markdown

Hello - and thank you. :-)
I ran through those pages, and I can say, no, that doesn't work.
I do NOT use the generalize, as I do not want to remove SID, or drivers, or anything else - I just want to reset the user account to default, and ask all the "usual" questions.
At the point I am at, I have updated drivers, setup everything to the hardware, and I am NOT using it for HyperV - in fact, I have already activted the license successfully and everything.
It's a "ready to use" machine.

I just need to execute the standard OOBE "script".... so people can put in their own MS account.

but if I do the sysprep with oobe defaults, it just reboots back into what I assume is the lumOOBE.... same default account... no password... everything I picked from the usbstick win11 24h2 install that the instructions created. :-(

Yes, bitlocker is off.

I wonder if there are settings that lumOOBE introduced, that I can remove?
an answer file that can be delete or reset?

thank you!
Andrew

@AndrewBienhaus

Copy link
Copy Markdown

for what it is worth - if it helped - I have 3 machines right now sitting in my "resale" pile, that are in this state.
if you want me to try messing with something, I am happy to experiment. :-)

@djibe

djibe commented Jan 21, 2025

Copy link
Copy Markdown
Author

Ni idea :(

@AndrewBienhaus

Copy link
Copy Markdown

Ok, so for the search engines, here's what I have figured out as of today. :-)

My best google-fu, couldn't unlock the mystery of removing the lumOOBE, resetting it, disabling it, or anything like that.
No matter what I did, sysprep couldn't seem to reset the user experinece to the default oobe.

So - I made a new ISO, using the SetupPatchium tool above, and dumped to USB with Rufus, without the lumOOBE.
Everything worked perfectly.
System setup, just the way I wanted it, and then sysprepped it for a new customer. Tested. Working.
Interestingly enough, using Rufus 4.6.2208 - it actually asked me if I wanted to disable hardware checking, oobe, and a few other things, before it made the USB stick... so I guess Rufus has the same support now for 24h2?

So - I made another USB, using the earlier downloaded iso from MS of 24h2, the one I had fed to SetupPatchium, and selected those options at usb creation time, and it worked perfectly.

BOTH of them - go through the OOBE, but if you unplug the ethernet cable at the "setup for personal use" step, it then bypasses the MS account need, and you can plug the cable back in, one screen later.

The only thing SetupPatchium does do for you, is allow you to select the old pre-24h2 install menus & screens... but there's nothing wrong with the new ones that I have found yet. :-)

@djibe

djibe commented Jan 22, 2025

Copy link
Copy Markdown
Author

Great. Thx for sharing.

Maybe Rufus is enough for patching the official ISO then.
Enjoy

@AndrewBienhaus

Copy link
Copy Markdown

.... maybe... but I want you to know I appreciate your original post!
My brain is storing 100,000 trivial things in the IT world... and I truly always appreciate someone saving me some work, and spelling it out!
:-)

@djibe

djibe commented Jan 22, 2025

Copy link
Copy Markdown
Author

Glad it helps.

You can share Gists too ;)

@djibe

djibe commented Jan 25, 2025

Copy link
Copy Markdown
Author

@djibe

djibe commented Jan 26, 2025

Copy link
Copy Markdown
Author

@AndrewBienhaus

Copy link
Copy Markdown

thank you!
DISM has always been a pain.... I will look into that for sure!

@km1965

km1965 commented May 30, 2025

Copy link
Copy Markdown

Salut, moi j'ai lancé l'installation de Windows 11 24H2 avec Fly by11 une fois l'installation terminée et après le redémarrage qui a duré un bon moment j'ai eu tout simplement droit a la réinitialisation de mon Windows 10 22H2 avec le message Windows server n'as pas pu s'installer nous avons réinitialise Windows 10.
S'il y'a une solution je suis preneur peut Γͺtre je dois essayΓ© avec Windows 22H2. Merci.

@km1965

km1965 commented May 30, 2025

Copy link
Copy Markdown

Je veux dire essayΓ© avec Windows 11 22H2 . Merci encore une fois.

@km1965

km1965 commented May 31, 2025

Copy link
Copy Markdown

Bonjour, j'ai aussi essayΓ© Windows 11 22H2 et tout marchai bien mais une fois redΓ©marrer et Γ  48% de l'installation des mises Γ  jour tout s'est arrΓͺtΓ©s et en fin retour Γ  Windows 10 avec le message ci joint. Merci.
message d'installation win 11 22H2
Uploading message d'installation win 11 22H2.PNG…

@km1965

km1965 commented May 31, 2025

Copy link
Copy Markdown

Merci d'avance, est se qu'il y a moyen de migrer de Windows 10 22H2 vers Windows_10 IOT enterprise_ltsc_2021.

@ji4ko0

ji4ko0 commented Jun 1, 2025

Copy link
Copy Markdown

Thanks

@Tataz2

Tataz2 commented Jun 4, 2025

Copy link
Copy Markdown

I tested Rufus. Installation by running setup.exe worked but automatic installation did not work without manually clicking.
setup.exe /ShowOOBE none /EULA accept /Compat IgnoreWarning /auto upgrade /DynamicUpdate Disable

I then tried Patchium but the installation stopped and Secure Boot was required.

Edit:
The problem was with a ISO image created by Media Creation Tool. When I downloaded the ISO file directly from https://www.microsoft.com/en-us/software-download/windows11 and used Patchium. Installation did not require Secure Boot.

Edit:
Cannot update Windows 10 22H2 to Windows 11 24H2. I get complains about TPM 2.0 and Secure Boot. My first test was to update Win 11 23H2 to 24H2 and it was ok.

Edit:
I'm updating Windows 10 machines to Windows 11 23H2 which is supported till November 11, 2025.

Edit:
The issue with Rufus setup.exe is now fixed pbatard/rufus#2752

@rusangarg

Copy link
Copy Markdown

i am stucked on secure boot
tpm is removed but secure boot is still there

@Tataz2

Tataz2 commented Sep 4, 2025

Copy link
Copy Markdown

i am stucked on secure boot tpm is removed but secure boot is still there

I have made these changes before updating.

# These registry edition does not alone work for Windows 11 24H2. Not sure if needed anymore.
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 "BypassCPUCheck" /t REG_DWORD /d 1 /f


# This is what Rufus does
# https://github.com/pbatard/rufus/issues/2568#issuecomment-2387934171
# https://github.com/pbatard/rufus/blob/master/res/setup/setup.c#L109C102-L109C115
reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CompatMarkers" /f
reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Shared" /f
reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\TargetVersionUpgradeExperienceIndicators" /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\HwReqChk" /v "HwReqChkVars" /t REG_MULTI_SZ /s "," /d "SQ_SecureBootCapable=TRUE,SQ_SecureBootEnabled=TRUE,SQ_TpmVersion=2,SQ_RamMB=8192" /f
reg.exe add "HKLM\SYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /t REG_DWORD /d 1 /f

@djibe

djibe commented Sep 4, 2025

Copy link
Copy Markdown
Author

Hi @Tataz2 , Secure Boot is temporarly disabled from the UEFI settings, not from Windows.

@D2KLON

D2KLON commented Nov 29, 2025

Copy link
Copy Markdown

I have a mc. How to do this on a mac?

@prodiptodas765-boop

Copy link
Copy Markdown

Fdy

@chaprilonda3

chaprilonda3 commented Jul 25, 2026

Copy link
Copy Markdown

Click To Download πŸ‘‡

Install Windows 11 25H2 without TPM

@debit-snowy-unsafe

debit-snowy-unsafe commented Aug 21, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment