Can I change BIOS settings from CMD?

Mahesh S August 2, 2013

How can I change BIOS settings from CMD?

  1. Tsf O
    August 29, 2013 at 5:32 pm

    You can access BIOS from cmd by:
    Click on the "Start" menu and select "Run." Type "D:/>wmic bios get /format:list" to bring up a list of the BIOS settings.
    and it can be edited in the same way as at start-up

  2. Oron J
    August 2, 2013 at 9:28 am

    Can you tell us why you are asking this? Editing the BIOS from a script is extremely unusual, and you certainly can't do it interactively from the command line. It would help to understand what you are trying to achieve, and hopefully to be able to offer sme advice.

  3. Hovsep A
    August 2, 2013 at 6:14 am
    • Bruce E
      August 2, 2013 at 8:54 am

      Your linked document describes how to reboot the computer and enter BIOS to make changes. It then (on the second page) shows how to issue a WMI command in order to retrieve the values that Windows retrieved and set for itself based on what was returned from BIOS queries. There is a way to use the wmic command to create a new BIOS profile (using 'wimc bios create' - effectively lying to Windows about the underlying BIOS and risking system instability), but it does not offer a way to actually change the BIOS settings.

      Since most motherboard manufacturers do not use a stock BIOS (most end up being altered to achieve better performance for each particular board), there is not a single executable program that can be used to modify BIOS settings on a generic system. There may be tools from individual motherboard manufacturers that can do this for their board(s), but it is probably customized for each individual model if it even exists.

      Also, when a setting is BIOS is changed, the system needs to re-register the current settings which will require a reboot. Because of this, it is generally simpler to reboot the machine, enter BIOS and make your changes (with validation), save the changes and allow the BIOS to automatically reboot the machine (to re-read the configuration and POST the hardware with the new configuration), and allowing the OS to query the new BIOS settings and adjust itself accordingly.

    • Hovsep A
      August 2, 2013 at 9:18 am

      sure as you said Changing BIOS in cmd mode is little difficult, settings can only be done in real mode, because the Command Prompt does not have access to BIOS. Unless manufacturer provided other means to exploit cmd for BIOS.

      HP BIOS Configuration Utility (BCU)

      How to change Dell’s BIOS settings from a Linux command-line