Check if Windows 10 is using UEFI or Legacy BIOS  

Page 4 of 5 FirstFirst ... 2345 LastLast

  1. Posts : 14,020
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #30

    I created a .bat file using that code that works in a Command Prompt. I put it in Documents then Sent it to the Desktop as a Shortcut.
      My Computers


  2. Posts : 7,607
    Windows 10 Home 20H2
       #31

    Paul Black said:
    I just can't get it on the same line.
    The following is the simplest way to get it:

    BcdEdit|Find "EFI">Nul&&Echo UEFI is used||Echo Legacy is used

    Berton said:
    I created a .bat file using that code that works in a Command Prompt.
    The above code works in elevated Command Prompt.
      My Computer


  3. Posts : 14,020
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #32

    @Paul Black
    I don't get it on one line either, Command Prompt doesn't seem to have the same WordWrap as Notepad does.

    Check if Windows 10 is using UEFI or Legacy BIOS-image.png
      My Computers


  4. Posts : 41,474
    windows 10 professional version 1607 build 14393.969 64 bit
       #33

    Had you had the opportunity to test the command to see whether it displays results for CSM?
    UEFI native (without CSM)
    UEFI hybrid (with CSM)
    Last edited by zbook; 08 Apr 2021 at 01:55.
      My Computer


  5. Posts : 1,777
    Windows 11 [21H2]
       #34

    Hey, it worked. 🙂
    I'm tested: 1, 2, 3, 5
    I'm lazy to do 4 bcoz of the DISM /Online /Cleanup-Image /RestoreHealth running in the background.
      My Computers


  6. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #35

    pmkochie said:
    PowerShell.exe -executionpolicy bypass -Command "Write-Host 'The Motherboards Firmware is:'$env:firmware_type
    I took out the double quotes and that worked, thanks.

    Matthew Wai said:
    The following is the simplest way to get it: BcdEdit|Find "EFI">Nul&&Echo UEFI is used||Echo Legacy is used

    The above code works in elevated Command Prompt.
    Thanks Matthew.

    Berton said:
    @Paul Black
    I don't get it on one line either, Command Prompt doesn't seem to have the same WordWrap as Notepad does.

    Check if Windows 10 is using UEFI or Legacy BIOS-image.png
    The output on yours IS on one line though. What I meant was that the output either looked like one of the following . . .

    Code:
    
    The Motherboards Firmware is:
    Legacy
    Code:
    
    The Motherboards Firmware is:
    UEFI



    I always tend to over complicate these sort of things when they have a far simpler answer. Anyway, I went with the code that Matthew posted.
    Thanks everyone.
      My Computer


  7. Posts : 7,607
    Windows 10 Home 20H2
       #36

    @Paul Black, the following is an alternative that works in a batch file without administrative privileges:

    For /f "Delims=" %%# in ('PowerShell $env:firmware_type') Do Echo Firmware is: %%#
      My Computer


  8. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #37

    Matthew Wai said:
    @Paul Black, the following is an alternative that works in a batch file without administrative privileges:

    For /f "Delims=" %%# in ('PowerShell $env:firmware_type') Do Echo Firmware is: %%#
    Thanks.
      My Computer


  9. Posts : 4
    Windows 10 Enterprise x64
       #38

    Code:
    @PowerShell.exe -executionpolicy bypass -Command "Write-Host 'The Motherboards Firmware is:'$env:firmware_type
    I guess I should have tagged it with code to make it show the entire entry for everyone.
      My Computer


  10. Posts : 6
    Win 10 Pro 64 Bit
       #39

    Excellent article, helped me a lot!
    I have 3 OS on machine, 1 is MBR and I found it changed to efi when I loaded a new install of Win 10 on another drive.
    I assume I can edit the bcd file to change this parameter ?
    Also the identifier is different from the one shown when I boot into the legact OS.
    Does this need to be changed as well?
    Check if Windows 10 is using UEFI or Legacy BIOS-new-win-10-bcd-256-drive.png Check if Windows 10 is using UEFI or Legacy BIOS-bcd-256-drive-when-booted-os.png

    thanks for any thoughts !
      My Computer


 

Tutorial Categories

Check if Windows 10 is using UEFI or Legacy BIOS Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:52.
Find Us




Windows 10 Forums