Check if Windows 10 is using UEFI or Legacy BIOS  

Page 4 of 4 FirstFirst ... 234
  1. Berton's Avatar
    Posts : 10,489
    Win10 Pro Versions 2004 and 2009/20H2, Win10 Pro IP_Dev, Win10 Home 1909
       #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. Matthew Wai's Avatar
    Posts : 5,006
    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. Berton's Avatar
    Posts : 10,489
    Win10 Pro Versions 2004 and 2009/20H2, Win10 Pro IP_Dev, Win10 Home 1909
       #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 : 38,335
    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; 3 Days Ago at 01:55.
      My Computer

  5. jbcarreon123's Avatar
    Posts : 59
    Windows 10 Pro v20H2 x64, Ubuntu (LiveUSB)
       #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 Computer

  6. Paul Black's Avatar
    Posts : 12,150
    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. Matthew Wai's Avatar
    Posts : 5,006
    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. Paul Black's Avatar
    Posts : 12,150
    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


 
Page 4 of 4 FirstFirst ... 234

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 23:04.
Find Us




Windows 10 Forums