[Tool] Win PE Tool [with AveYo TPM bypass]

Discussion in 'Windows 11' started by Dark Dinosaur, Oct 2, 2021.

  1. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,756
    5,219
    120
    #1 Dark Dinosaur, Oct 2, 2021
    Last edited: Oct 4, 2021
    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 :D]


    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

    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 :)
    


     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. You are Doing Great . Keep it Up Pl .
     
  3. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,756
    5,219
    120
    #3 Dark Dinosaur, Oct 3, 2021
    Last edited: Oct 3, 2021
    (OP)
    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. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,756
    5,219
    120
    Add new version.
    V2 -- version with AveYo TPM bypass
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. TECHNOMAN

    TECHNOMAN MDL Senior Member

    Jan 19, 2009
    313
    225
    10
    Great work
    will give this a try
    thanks for your hard work
     
  6. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,449
    90
    This is my favorite part of the script:
    Code:
    goto :WTF
     
  7. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,756
    5,219
    120
    should i change it goto :hell
    sound better :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,449
    90
    If user gives bad input and goto: WTF more than once, then goto: hell.
     
  9. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,756
    5,219
    120
    they can try how much as they want.
    it will fail over and over :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...