Tag Archives: BIOS

Using Powershell and the Dell OMCI to enable Wake On LAN on your Dell Workstation | Energized About Technology

Using Powershell and the Dell OMCI to enable Wake On LAN on your Dell Workstation | Energized About Technology.

Advertisements

Automate BIOS configuration for HP clients

First install the HP CMI Interface providers. It’s an exe file that extract itself in a path of your choice (C:\Program Files\Hewlett-Packard\HPProviderUtilities beeing the default) as a HPCMIProviders.msi. For some reason on my laptop it would  not install by just double-clicking the msi (or right-clicking and then clicking Install in the context menu). The following command installed the msi package fine though

msiexec.exe /i "C:\SwSetup\sp38117\HPCMIProviders.msi" /qn REINSTALLMODE=vomus REINSTALL=ALL

Then open Powershell and run this command for a list of available settings:
 Get-WmiObject HP_BIOSSetting -Namespace "root\HP\InstrumentedBIOS" | Format-Table -AutoSize -Property Name, Value 

the same the V3 way:

 Get-CimInstance -ClassName HP_BIOSSetting -Namespace "root\HP\InstrumentedBIOS" | Format-Table -AutoSize -Property Name, Value 
Determine if  computer setup password is set:
 if (gwmi HP_BIOSPassword -Namespace "root\HP\InstrumentedBIOS" -Filter "Name = 'Setup Password' AND IsSet = 1") {"setup password set"} else {"setup password not set"} 
Determine and set the Numlock state at boot property in setup
Get-CimInstance -ClassName hp_biossetting -Namespace "root\hp\instrumentedbios" | where name -eq "Numlock state at boot"

DisplayInUI              : 1
IsReadOnly               : 0
Name                     : Numlock state at boot
Path                     : \System Configuration\Device Configurations
Prerequisites            : { ,  ,  }
PrerequisiteSize         : 3
RequiresPhysicalPresence : 0
SecurityLevel            : 2
Sequence                 : 315
Value                    :   On, *Off
CurrentValue             : Off
PossibleValues           : {On, Off,  ,  …}
Size                     : 12
Active                   : True
InstanceName             : ACPI\PNP0C14_61
PSComputerName           :

 $s = gwmi -class hp_biossettinginterface -Namespace "root\hp\instrumentedbios"
 $s.SetBIOSSetting("Numlock state at boot","On","")

__GENUS          : 2
__CLASS          : __PARAMETERS
__SUPERCLASS     :
__DYNASTY        : __PARAMETERS
__RELPATH        :
__PROPERTY_COUNT : 1
__DERIVATION     : {}
__SERVER         :
__NAMESPACE      :
__PATH           :
Return           : 0
PSComputerName   :

Zero in the returned object Return property means the change went OK

ADMIN PS> Get-CimInstance -ClassName hp_biossetting -Namespace "root\hp\instrumentedbios" | where name -eq "Numlock state at boot"

DisplayInUI              : 1
IsReadOnly               : 0
Name                     : Numlock state at boot
Path                     : \System Configuration\Device Configurations
Prerequisites            : { ,  ,  }
PrerequisiteSize         : 3
RequiresPhysicalPresence : 0
SecurityLevel            : 2
Sequence                 : 315
Value                    :  *On, Off
CurrentValue             : On
PossibleValues           : {On, Off,  ,  …}
Size                     : 12
Active                   : True
InstanceName             : ACPI\PNP0C14_61
PSComputerName           :

U may find useful also the HP CMI Administrator Toolkit which extracts itself into path “C:\Program Files\Hewlett-Packard\HPProviderUtilities\HPCMIUtilities.msi” as a msi package. You need to doubleclick it to install itself into the same path. It contains few simple samples and utilities.

Explanation of some of the most usefull values used when talking to HP support

Serial Number An identifier unique to the individual computer. The product number, along with the serial number, are the two most important pieces of information that you can give to a customer service agent when contacting HP.
Product Name The model name of the computer.
Product Number/SKU Number An identifier unique to this product line. Use this number to find product specification information and updated drivers on HP.com. The SKU number, along with the serial number, are the two most important pieces of information you can give to a customer service agent when contacting HP. The SKU number (also known as the product number) usually follows a format similar to 12345#aba.
Warranty Start Date The start date of the warranty for the computer. If the computer was manufactured prior to 2008, the warranty start date may be called a Service ID for your particular model.If the warranty start date is different from what you expected to see, note that this date is set the first time that you start up the computer. Your receipt is always the final proof of purchase for warranty services.
Service ID This field may be empty. IT departments in some companies use these numbers to keep track of the many computers they manage.

Sources:
Automate BIOS configuration for HP clients « Anything about IT.

http://h20331.www2.hp.com/Hpsub/cache/284014-0-0-225-121.html?jumpid=reg_R1002_USEN

 

HP Client Management Interface Technical Whitepaper HP Client Management Interface Provider for Monitors HP Backup and Recovery Instrumentation HP Client Management Interface Provider for Plug and Play Devices

smsagent

Tips, tricks and time-savers for the Windows and ConfigMgr administrator

To The Point

Anything about Technology and Business

Brian's Power Windows Blog

Microsoft in the Enterprise. Windows, Hyper-V, Exchange, SQL, and more!

PowerScripting Podcast

Shownotes and links for the PowerScripting Podcast, a podcast to help people learn Windows Powershell

Learn Powershell | Achieve More

What is this Powershell of which you speak?