How to Check if WinPE boot in EFI or Bios mode?

Discussion in 'Scripting' started by Flipp3r, Oct 1, 2012.

  1. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,475
    627
    60
    Hi,

    I'm trying to get some automated cmd files working withing WinPE but can't find out how to detect if I've boot PE in EFI or bios mode. There's nothing in the environment variables...

    Any ideas? I'm thinking maybe looking at bcd for bootmgfw.efi??
    Anything simple??

    Ta!
     
  2. quantahis

    quantahis MDL Novice

    Jul 26, 2012
    21
    2
    0
    No idea but you can take help from Google.