PowerShell: Export BIOS Information to CSV
Need to export BIOS details to a CSV file - for hardware inventory, documentation, or sharing with a team? This one-liner pulls the info and saves it directly to a file.
Prerequisites:
- Privileges: None
- Module: Built-in, no import needed
Quick Command:
Get-CimInstance -ClassName Win32_BIOS | Export-Csv -Path "C:\bios.csv"
📦
Want all of them at once?
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.
How it Works:
- Get-CimInstance -ClassName Win32_BIOS queries the BIOS class, same as covered in the earlier BIOS version/manufacturer articles.
- | Export-Csv -Path "C:\bios.csv" pipes the result into Export-Csv, which writes it to a CSV file at the specified path - by default, this produces no output in the terminal, since the result goes straight to the file instead.
- Since no Select-Object is used, the CSV includes every property of Win32_BIOS - useful for a complete record, though it also means the file includes properties you may never need (like OtherTargetOS or ListOfLanguages).