There are a lot of Windows 11 articles about bypassing the TPM and Secure Boot checks but, what if you are wanting to stream-line a new install from bootable USB?
Here is how I've done it, you'll like this, and you can try it yourself. First, download the official ISO from MS or generate one using the https://uupdump.net/ site. Once you have the ISO, use rufus to write the ISO to a USB key. Don't boot it up yet, as we need to make changes to "boot.wim". Now, look in the sources folder for the file "boot.wim". This is a Windows Image file which contains the registry keys for the setup. You can actually mount this image and edit it.
Here is how. First, lets get the wim info from command-line so run "cmd" as Administrator, you can right-click start menu and "Command Prompt (Admin)".
--------------
Dism /Get-WimInfo /WimFile:D:\sources\boot.wim
Details for image : D:\sources\boot.wim
Index : 1
Name : Microsoft Windows PE (x64)
Description : Microsoft Windows PE (x64)
Size : 2,285,335,478 bytes
Index : 2
Name : Microsoft Windows Setup (x64)
Description : Microsoft Windows Setup (x64)
Size : 2,343,897,789 bytes
--------------
OK, so we need to use index 2 here. Let mount and edit the registry and add the two keys to bypass checks:
--------------
Dism /Mount-Wim /WimFile:D:\sources\boot.wim /index:2 /MountDir:C:\_mount
NOTE: You need to create the "_mount" directory first!
1). reg load HKLM\OFFLINE D:\_mount\Windows\System32\Config\SYSTEM
2). Open Registry Editor (regedit) on host, you will notice it now contains temporary hive HKLM\OFFLINE
3). Go to: HKEY_LOCAL_MACHINE\OFFLINE\SYSTEM\Setup
4). Click on Edit > New > Key to create a new key named "LabConfig".
5). Inside "LabConfig", create New > DWORD (32-bit)
- BypassTPMCheck 1
- BypassSecureBootCheck 1
6). Close regedit.
6). reg unload HKLM\OFFLINE
Dism /Unmount-Image /MountDir:C:\_mount /Commit
- The /Commit switch takes care of saving all changes to boot.wim file.
Done :)
--------------
That's it! Plug in your USB key and it will install without the checks, simple!
If you want to boot from ISO instead when using VM, use an ISO editor and overwrite the "boot.wim" on the ISO and save as new ISO.
Enjoy :)
Here is how I've done it, you'll like this, and you can try it yourself. First, download the official ISO from MS or generate one using the https://uupdump.net/ site. Once you have the ISO, use rufus to write the ISO to a USB key. Don't boot it up yet, as we need to make changes to "boot.wim". Now, look in the sources folder for the file "boot.wim". This is a Windows Image file which contains the registry keys for the setup. You can actually mount this image and edit it.
Here is how. First, lets get the wim info from command-line so run "cmd" as Administrator, you can right-click start menu and "Command Prompt (Admin)".
--------------
Dism /Get-WimInfo /WimFile:D:\sources\boot.wim
Details for image : D:\sources\boot.wim
Index : 1
Name : Microsoft Windows PE (x64)
Description : Microsoft Windows PE (x64)
Size : 2,285,335,478 bytes
Index : 2
Name : Microsoft Windows Setup (x64)
Description : Microsoft Windows Setup (x64)
Size : 2,343,897,789 bytes
--------------
OK, so we need to use index 2 here. Let mount and edit the registry and add the two keys to bypass checks:
--------------
Dism /Mount-Wim /WimFile:D:\sources\boot.wim /index:2 /MountDir:C:\_mount
NOTE: You need to create the "_mount" directory first!
1). reg load HKLM\OFFLINE D:\_mount\Windows\System32\Config\SYSTEM
2). Open Registry Editor (regedit) on host, you will notice it now contains temporary hive HKLM\OFFLINE
3). Go to: HKEY_LOCAL_MACHINE\OFFLINE\SYSTEM\Setup
4). Click on Edit > New > Key to create a new key named "LabConfig".
5). Inside "LabConfig", create New > DWORD (32-bit)
- BypassTPMCheck 1
- BypassSecureBootCheck 1
6). Close regedit.
6). reg unload HKLM\OFFLINE
Dism /Unmount-Image /MountDir:C:\_mount /Commit
- The /Commit switch takes care of saving all changes to boot.wim file.
Done :)
--------------
That's it! Plug in your USB key and it will install without the checks, simple!
If you want to boot from ISO instead when using VM, use an ISO editor and overwrite the "boot.wim" on the ISO and save as new ISO.
Enjoy :)
Last edited: