When setting up a Windows computer, it’s important to know whether the operating system has been installed in UEFI (Unified Extensible Firmware Interface) or Legacy mode. This information can help you understand the system’s boot process and determine compatibility with certain features or hardware. Fortunately, you can easily check if Windows has been installed in UEFI or Legacy mode using PowerShell or the command line.
For PowerShell:
echo $env:firmware_type
bcdedit | find “winload”
The output of the command will show one of the following lines:
\WINDOWS\system32\winload.efi: Windows has been installed in UEFI mode
\WINDOWS\system32\winload.exe: Windows has been installed in Legacy mode.