wmic get serial number: A practical Windows serial lookup guide

A practical guide to using WMIC to retrieve BIOS and baseboard serial numbers on Windows, with commands, parsing tips, and automation examples for DIYers and professionals.

Hardware Serials
Hardware Serials Team
·5 min read
Quick AnswerDefinition

wmic get serial number is a Windows Management Instrumentation (WMI) technique used to pull hardware serials directly from a PC. This guide covers the core WMIC queries for BIOS and baseboard serials, explains output formats, and shows how to parse results reliably. By the end you'll run commands such as wmic bios get SerialNumber and wmic baseboard get SerialNumber.

What WMIC is and why serial numbers matter

WMIC, short for Windows Management Instrumentation Command-line, provides a consistent interface to query hardware and system information from Windows. For technicians and developers, serial numbers are essential identifiers for inventory, warranty checks, and device provenance. The phrase "wmic get serial number" archetypically points to querying a hardware object's SerialNumber property through specific WMIC classes like Win32_BIOS or Win32_BaseBoard. While the exact property name is case-insensitive in WMIC, knowing which class to query is crucial because BIOS and baseboard serials often live in different namespaces. This section demonstrates the core idea with two straightforward queries that any admin can run from Command Prompt or PowerShell.

PowerShell
# BIOS Serial Number wmic bios get SerialNumber # Baseboard (Motherboard) Serial Number wmic baseboard get SerialNumber

Notes: Some vendors may leave SerialNumber blank or obfuscated due to security policies. If you see empty results, try querying alternative classes such as Win32_ComputerSystemProduct identifyingNumber or consult the device vendor documentation for exact field mappings.

Practical queries for common hardware components

When you need rapid verification across common hardware components, using a small set of WMIC queries covers most use cases. The BIOS and baseboard serials often serve as the primary identifiers in asset inventories, while the system product identifier can help with model-level audits. The following commands are reliable starting points and demonstrate how to extract the essential SerialNumber/IdentifyingNumber fields.

PowerShell
# BIOS serial wmic bios get SerialNumber # Baseboard / motherboard serial wmic baseboard get SerialNumber # System product identifying number (often used when BIOS/baseboard are blank) wmic csproduct get IdentifyingNumber

Line-by-line:

  • The BIOS query returns a two-column output with a header row and the SerialNumber value.
  • The baseboard query mirrors BIOS output but targets the motherboard identifier.
  • The CSProduct query can help when other serial fields are unpopulated or vendor-specific.
  • If you need a clean value, consider piping through format/list to simplify parsing: wmic bios get SerialNumber /format:list.

Variations: Depending on the hardware vendor, you may need to use Win32_BIOS or Win32_BaseBoard in a PowerShell CIM session for remote queries with proper credentials.

Steps

Estimated time: 15-30 minutes

  1. 1

    Open a Windows shell

    Launch Command Prompt or PowerShell with normal or elevated privileges depending on your environment. Elevation helps if UAC policy restricts WMI access in non-admin contexts.

    Tip: If you plan remote queries, enable PowerShell Remoting or configure WMI privileges beforehand.
  2. 2

    Run BIOS and Baseboard queries

    Execute the basic commands to retrieve SerialNumbers from BIOS and Baseboard. Inspect the output for a value under the SerialNumber column.

    Tip: If the header is present but the value is blank, move to an alternate class or vendor-provided tool.
  3. 3

    Parse the results

    Decide on a parsing strategy: simple output for quick checks or /value/format:list for easier scripting. Extract the SerialNumber field from the command output.

    Tip: For automation, prefer parsing into variables immediately rather than manual copy-paste.
  4. 4

    Log or export results

    Redirect or export the extracted data to a file (CSV, JSON) for inventory or ticketing systems.

    Tip: Include a timestamp to track serial data over time.
  5. 5

    Verify across sources

    Cross-check BIOS, BaseBoard, and CSProduct values to confirm consistency or identify vendor discrepancies.

    Tip: Discrepancies may indicate virtualization, remediation, or multiple hardware components.
Pro Tip: Use /value or /format:list to produce parse-friendly output.
Warning: WMIC is deprecated in newer Windows builds; prefer CIM cmdlets (Get-CimInstance) for future-proof scripts.
Note: Some devices intentionally mask serial numbers; consult vendor documentation for alternate identifiers.

Prerequisites

Required

  • Required
  • PowerShell 5.1+ or Command Prompt
    Required
  • Administrative privileges for WMI access
    Required
  • Basic command-line knowledge
    Required

Optional

  • Optional: Get-CimInstance (PowerShell CIM cmdlets) for modern queries
    Optional

Commands

ActionCommand
Query BIOS serial numberRun in CMD or PowerShell; output is two-column text with header 'SerialNumber'.wmic bios get SerialNumber
Query Baseboard serial numberMotherboard serial often used for asset audits.wmic baseboard get SerialNumber
Query product identifying numberUseful when BIOS/BaseBoard lack serial data.wmic csproduct get IdentifyingNumber

Frequently Asked Questions

What is WMIC and when should I use it for serial numbers?

WMIC is a command-line interface to Windows Management Instrumentation. It’s useful for quick lookups of hardware serial numbers like BIOS or baseboard identifiers. Use it for scripts, audits, and lightweight inventory tasks.

WMIC is a quick CLI tool for hardware serial lookups, good for scripts and audits. For long-term use, consider CIM-based commands.

Why might wmic bios get SerialNumber return nothing on some systems?

Serial numbers can be blank due to vendor policies or BIOS security settings. Some OEMs disable WMI exposure for security, or the value is stored in non-standard fields. Always check multiple classes (BIOS, BaseBoard, CSProduct) and vendor docs.

Some devices don’t expose the serial number via WMI. Try other classes or vendor tools.

Is WMIC still supported in Windows 11/2026?

WMIC is officially deprecated in modern Windows environments. While it may still work, Microsoft recommends using PowerShell CIM cmdlets like Get-CimInstance for future compatibility and script longevity.

WMIC is deprecated; use CIM cmdlets for future-proof scripts.

Can I query serial numbers from remote machines?

Yes. With proper credentials and network permissions, you can query remote machines using WMIC or PowerShell Remoting. Remote queries require the target to allow WMI or CIM access and may need firewall adjustments.

Remote lookup is possible with proper credentials and network access.

What are alternatives to WMIC for serial number retrieval?

PowerShell CIM cmdlets, such as Get-CimInstance Win32_BIOS, provide a modern and supported alternative. You can also use Get-WmiObject (legacy) in older scripts, but CIM is preferred for new tooling.

Use CIM cmdlets like Get-CimInstance for future-proof serial lookups.

Key Takeaways

  • Query BIOS/Baseboard for serials
  • Parse output reliably with /value or /format:list
  • Use CIM cmdlets for future-proofing
  • Validate results with multiple sources

Related Articles