Win PE Tool [with @BAU TPM bypass] Another project for fun. this is tool I made to make my life easy. to make bootable USB device from UEFI Source Source can be :: Local USB, ISO, Folder ### In case of Linux, It will convert USB Drive to FAT32. [ some systems not work well with NTFS ] ### In any other case, It will convert to NTFS. [ to allow using file more than 4GB size] its safe to use, and not matter what, if destination Drive its not Removable, it will stop with ERROR .! [ check on my 4TB Hard drive, its still in one piece ] Latest changes -- 04/10/2021 Code: ~ Clean the Code from "Rem" Comments ~ Add Error message if XCOPY Fail Usage Code: Run from Removeable Drive [ No Parameters ] Run With Parameters [ Target Drive ] [ ISO File / Setup Folder ] [Bypass --- Optional] Run from Source Folder [ Target Drive ] Output Spoiler e:\ Drive -- USB Device "USB pe tool" e:\ "d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso" Bypass Code: Stop ShellHWDetection Service Define Drive Letter Verify variables $$$$$ Using [d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso] as Source $$$$$ Mount [d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso] to [F:] Check for local install Check User Input Format Usb Drive as NTFS Copy Files to USB Drive UEFI Patch TPM Bypass by AveYo Start ShellHWDetection Service Dismount ISO Done ... d:\ Drive -- HDD Local Partition "USB pe tool" d:\ "d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso" Bypass Code: Stop ShellHWDetection Service Define Drive Letter Verify variables $$$$$ Using ["d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso"] as Source $$$$$ Mount ["d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso"] to [F:] Check for local install Check User Input ERROR ##### Target Is Not A Removeable Drive Good bye :) C:\ Drive -- HDD System Partition "USB pe tool" c:\ "d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso" Bypass Code: Stop ShellHWDetection Service Define Drive Letter Verify variables $$$$$ Using ["d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso"] as Source $$$$$ Mount ["d:\Setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso"] to [E:] Check for local install Check User Input ERROR ##### Bad User Input Good bye :)
I can integrate @BAU windows 11 patch. should I ? it can be great idea. it will be like this, Every time user use "usb pe tool" e:\ d:\setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso it will identify "11" in the name, and will patch USB Drive after all done. Or can be like this. [3] Args. "usb pe tool" e:\ d:\setup\en_Windows_11_InsiderPreview_Client_x64_en-us_22000.iso Bypass Or can be both.