I'm trying to come up with a way to wipe the MBR/GPT of all the drives within a system booting only to UEFI Secure Boot, without CSM. I know I can change in UEFI the settings and enable CSM but I need it to work this way.
I have a USB drive, formatted with FAT32, bootmgr, copied boot and efi folders. Tested it and boots fine in BIOS and UEFI. But now I'm looking for a way to also do a wipe of mbr/gpt of every existing disk in the system.
Here's the way i'm thinking:
UEFI -> bootmgr -> wipe command
or something like this
UEFI -> bootmgr -> very small winpe.wim -> wipe command
Is there any possibility of running a command via bootmgr, without loading a .wim image, that can kill the partition table?
I would not prefer loading a full wim due the delay of loading the image. Something very similar to what Wonko posted over this thread http://reboot.pro/to...an/#entry194793but something that will work with bootmgr.