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!