⚡ PowerShell 5.1+
Get BIOS Info Report
Queries Win32_BIOS via WMI and reports BIOS Info in a formatted table, with an optional CSV export.
Get-BIOSReport.ps1
<#
.SYNOPSIS
Reports BIOS Info on this computer via WMI (Win32_BIOS).
.DESCRIPTION
Queries Win32_BIOS and displays Manufacturer, SMBIOSBIOSVersion, SerialNumber, ReleaseDate for each item found.
Use -ExportPath to also save the results to a CSV file.
.PARAMETER ExportPath
Optional path to a .csv file to write the results to.
.EXAMPLE
.\Get-BIOSReport.ps1
.EXAMPLE
.\Get-BIOSReport.ps1 -ExportPath C:\Reports\bios.csv
#>
[CmdletBinding()]
param(
[string]$ExportPath
)
$items = Get-CimInstance -ClassName Win32_BIOS | Select-Object Manufacturer, SMBIOSBIOSVersion, SerialNumber, ReleaseDate
if (-not $items) {
Write-Host "No BIOS Info found." -ForegroundColor Yellow
return
}
$items | Format-Table -AutoSize
if ($ExportPath) {
$items | Export-Csv -Path $ExportPath -NoTypeInformation -Encoding UTF8
Write-Host "`nExported to $ExportPath" -ForegroundColor Cyan
}