⚡ PowerShell 5.1+
Get Motherboard Info Report
Queries Win32_BaseBoard via WMI and reports Motherboard Info in a formatted table, with an optional CSV export.
Get-BaseBoardReport.ps1
<#
.SYNOPSIS
Reports Motherboard Info on this computer via WMI (Win32_BaseBoard).
.DESCRIPTION
Queries Win32_BaseBoard and displays Manufacturer, Product, SerialNumber 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-BaseBoardReport.ps1
.EXAMPLE
.\Get-BaseBoardReport.ps1 -ExportPath C:\Reports\baseboard.csv
#>
[CmdletBinding()]
param(
[string]$ExportPath
)
$items = Get-CimInstance -ClassName Win32_BaseBoard | Select-Object Manufacturer, Product, SerialNumber
if (-not $items) {
Write-Host "No Motherboard 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
}