lunedì 22 aprile 2019

How to update the BIOS of a PC over the network , from HP site

few people update the BIOS of their PCs but it's a best practice do it regularly.

there are several reasons for a BIOS update: improve security , remove BIOS bugs , add features

I know several methods to update the BIOS of an HP Business PC. in this post I just describe how to update the BIOS of PC running Windows 10 , BIOS in UEFI mode and disk with GPT partition scheme.
I doesn't work if disk has MBR partitions in legacy mode.

as usual you need Powershell HP Client Management Script Library form here https://ftp.hp.com/pub/caps-softpaq/cmit/hp-cmsl.html , download and install the package on you management console.
run a second time the installation packege and extract the HP module in  C:\SWSetup\ps1.2\
As the script I wrote need to access Windows Remote Management (WinRM) service running on the remote PC , the management console user must have the right to access  WinRM service of the remote PC and be able to run an invoke-command on remote PC.

The script do there actions:

  1. verifies that  management console user is able to access WinRM of remote client, otherwise exit
  2. reads remote computer model, sysID , BIOS version
  3. reads on HP web site which is latest BIOS version available for the remote PC sysID
  4. if PC already has latest BIOS version, exit
  5. if BIOS is not latest
    1. powershell scripts are copied from management to remote PC
    2. BIOS for remote PC is downloaded on the PC it-self
    3. if volume is encrypted with bitlocker, it will be suspended
    4. a BIOS update in scheduled on the remote PC
    5. update will happens at next reboot
bitlocker must be resumed after BIOS update.

script doesn't check if BIOS is really updated. you can use another cmdlet to check current BIOS version of remote PC such as get-HPBIOSVersion -target $ip_address

this is my script , copy&paste into a .ps1 file.


bye
Franco

Nessun commento:

Posta un commento