PowerBIOS is a PowerShell module that enables administration of a dynamic BIOS update system, designed by Mike Terrill, for use by OSD teams.
Import-Module C:\Path\To\Module\PowerBIOS.psm1
Set-PowerBIOSSettings -DatabaseServer "hostname.of.db.server.domain" -DBName "BIOS_Database" -NetworkLibrary dbmssocn -SiteServer "hostname.of.sccm.server.domain" -SCCMSiteCode CM1
PowerBIOS has standard PowerShell cmdlets for creating, removing, updating, and deleting dynamic BIOS update packages. They are implemented via:
New-BIOSPackage
Get-BIOSPackage
Update-BIOSPackage
Remove-BIOSPackage
New-BIOSPackage -Make Dell -Model 7520 -TARGETBIOSDATE 20180101 -FLASHBIOSCMD FlashBios.cmd -BIOSContentPath \\path\to\folder\containing\files -Version 1.0.0
Parameter | Definition |
---|---|
Make | The Make of device (Dell, Lenovo, etc) |
Model | The Model of the device (7520, X1 Carbon, etc) |
TARGETBIOSDATE | Date of the BIOS update. The update will run if the installed version is behind this date. Format: yyyyddMM |
FLASHBIOSCMD | Command to run for BIOS flashing. |
BIOSCONTENTPATH | Path to folder containing BIOS update binaries. UNC paths only. |
Version | Version of update (for the package in SCCM) |
Use the below command for further information.
Get-Help New-BIOSPackage -Full
Get-BIOSPackage -PackageID CM000000
Parameter | Definition |
---|---|
PackageID | PackageID to search SCCM for. |
Use the below command for further information.
Get-Help New-BIOSPackage -Full
Update-BIOSPackage -packageID CM000000 -newPackageID CM000001 -newFlashBiosCMD FlashBios.bat -newTargetBiosDate 20180102
Parameter | Definition |
---|---|
packageID | Target package to update. |
newPackageID | Set a new package ID if applicable. |
newFlashBiosCMD | Set a new FLASHBIOSCMD if applicable. |
newTargetBiosDate | Set a new TARGETBIOSDATE if applicable. Format: yyyyddMM |
Use the below command for further information.
Get-Help Update-BIOSPackage -Full
Remove-BIOSPackage -packageID CM000001
Remove-BIOSPackage -Make Dell -Model 7520
Parameter | Definition |
---|---|
PackageID | PackageID to remove. |
Make | Make of BIOS package to remove (goes with Model). |
Model | Model of BIOS package to remove (goes with Make). |
Use the below command for further information.
Get-Help Remove-BIOSPackage -Full