Need your computer's serial number for warranty, IT inventory, or support? Here are the commands for every operating system.

Windows

Open Command Prompt or PowerShell and run:

Command
wmic bios get serialnumber

Output shows serial number immediately.

Alternative method:

Command
wmic csproduct get identifyingnumber

PowerShell method:

Command
Get-WmiObject win32_bios | Select-Object SerialNumber

All three commands return the same serial number from BIOS.

Mac

Open Terminal and run:

Command
system_profiler SPHardwareDataType | grep Serial

Or shorter version:

Command
ioreg -l | grep IOPlatformSerialNumber

Serial number appears in output.

Linux

Command
sudo dmidecode -s system-serial-number

Requires sudo/root access. Returns serial number from DMI/SMBIOS.

Alternative without sudo:

Command
cat /sys/class/dmi/id/product_serial

May require root depending on permissions.

Virtual Machines

VMs often have generic or empty serial numbers because they're not physical hardware.

VMware:

Command
sudo dmidecode -s system-uuid

VirtualBox: Check VM settings, hardware tab for assigned serial.

When Serial Number Shows Empty

Desktop PCs: Some motherboards don't have serial numbers programmed.

Custom-built PCs: Builder may not have set serial number in BIOS.

Cloned systems: Imaging can sometimes lose serial data.

Solution: Check physical label on device (bottom of laptop, back of desktop case).

Why You Need Serial Number

Warranty claims: Manufacturers require serial to verify coverage.

IT asset tracking: Inventory management needs unique identifiers.

Support tickets: Tech support asks for serial to look up device specs.

Theft recovery: Police and insurance need serial for stolen device reports.

Hardware identification:确认准确的设备型号和配置。

Other Useful Hardware Commands

Windows - Get all system info:

Command
systeminfo

Mac - Full hardware report:

Command
system_profiler SPHardwareDataType

Linux - Detailed hardware info:

Command
sudo lshw

Finding Serial on Physical Device

If commands don't work, check physical labels:

Laptops: Bottom panel, battery compartment, under keyboard

Desktops: Back or side panel, sometimes on motherboard

Monitors: Back panel, usually near inputs

Network equipment: Bottom or back label

Serial typically labeled as "S/N" or "Serial Number."

Bottom Line

Quick commands to find serial number:

Windows: wmic bios get serialnumber Mac: system_profiler SPHardwareDataType | grep Serial Linux: sudo dmidecode -s system-serial-number

Takes 5 seconds. Write it down or save to your password manager for when you need it.

Physical label is backup if commands return empty.