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,965
    908
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. quantahis

    quantahis MDL Novice

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