This is an old revision of the document!
Table of Contents
There are a wide range of system settings controlled by a PC's BIOS. These settings are typically accessed by pressing a specific key while the PC is booting (F2, F8, F12, DEL)
One important setting available on most current PCs is a setting for what state to go into after power is cut off then restored. Having this option set to either “ON” or “Previous State” (i.e., come back on if the PC was on when the power was cut) can allow you to resume using the system remotely without needing physical access to press the power button.
In the event you want to check or modify a BIOS setting without rebooting, or even from a remote session, some major vendors provide interfaces to access and update BIOS settings from the running Windows O/S without rebooting. (We're not aware of comparable tools for Linus or MacOS.) You may need administrator access to install and run these utilities.
This page has a broad selection of BIOS-related PowerShell commands specific to Dell, HP and Lenovo PCs: BIOS access in PowerShell
Steps for checking and setting power state after power loss
Dell
Dell offers a series of “Dell Command” utilities. There is a package for Windows PowerShell called “Dell Command | PowerShell Provider”
Here are the steps to install this tool in Windows on any Dell PC, and use it to inspect and change BIOS settings on Dell PCs. These commands can be run in a remote session.
Use “Run as Administrator” to launch an admin PowerShell (or PowerShell ISE) At the PS prompt, type
PS> Install-Module -Name DellBIOSProvider -Force
The PS namespace will now include “DellSmbios” for use with “get-Item” and “set-Item”
To view the current setting of AcPwrRcvry for system behaviour after power interruption, type:
PS> get-Item -Path DellSmbios:\PowerManagement\AcPwrRcvry
While typing you should see drop-down autocompletion suggestions as you go through the parts of this path. If it reports “On” then you are fine. If it says “last” the system will come back on if it was running when power went out. If it says “off” then you will want to modify it to “On” (or “last”). Here is the command to do that:
PS> set-Item -Path DellSmbios:\PowerManagement\AcPwrRcvry “On”
HP
You can download the installer for HP's BIOS configuration Utility for Windows here: HP BIOS Config Util When you run this installer, it unpacks the utility, suggesting directory path C:\SWSetup\{package ID} You can replace that with a simpler path such as C:\HPBIOSConfig
Once the utility has been extracted, open an admin command prompt (search “cmd” - right click on Command and choose “Run as Administrator”) In the admin command prompt window: % cd C:\ % cd HPBIOSConfig {the folder where you extracted the utility} % dir { locate the file named BiosConfigUtility64.exe } % BiosConfigUtility /getvalue:“Power state after power loss”
Look at the list of available settings “CDATA[Power On, Power Off, *Previous State]”
The option with an asterisk in front is the current setting.
If your current setting is “Power Off” you need to change this to “Previous State” or “Power On” to retain remote access after power interruption.
HP's utility requires that a BIOS password be set in order to make changes to BIOS settings. Follow the instructions in this PDF to set a BIOS password HP BCU docs PDF
and then do /setvalue:“Power state after power loss”,“Previous State”
Please notify your supervisor of any BIOS password you have set so your PC can be maintained once you leave.