How to Find Your Serial Number Using Command Prompt (2026 Guide)
bySuleiman Inuwa-
How to Find Your Serial Number Using Command Prompt
Need to find your PC's serial number fast? Learn the exact serial number command prompt inputs, PowerShell tricks, and troubleshooting steps for Windows 10, 11, and 12.
It is a scenario almost every computer user faces eventually: You need to download a specific driver, file a warranty claim, or report a stolen device to insurance. You flip your laptop over to read the sticker, only to find it has faded into an unreadable white smudge or is buried under a heavy desktop tower you can’t easily move.
Fortunately, your computer knows its own identity. You do not need a magnifying glass or a flashlight; you just need a simple line of text.
Retrieving your serial number via command prompt is the fastest, most accurate way to identify your machine. Whether you are an IT professional managing an inventory of hundreds of devices or a home user trying to get support from HP, Dell, or Lenovo, the Windows Command Prompt (CMD) is your best friend.
In this comprehensive guide, we will walk you through the specific commands to reveal your system’s unique ID, explore modern PowerShell alternatives, and troubleshoot what to do if the system returns the dreaded "To be filled by O.E.M." error.
The Quickest Method: Using WMIC
If you are in a rush and just need the number right now, this is the industry-standard method. The Windows Management Instrumentation Command-line (WMIC) tool allows you to query the system BIOS directly.
Step-by-Step Instructions
Open Command Prompt:
Press the Windows Key on your keyboard.
Type cmd into the search bar.
Click on Command Prompt (you do not strictly need Administrator privileges for this specific command, but it is good practice to select "Run as Administrator" if you encounter issues).
Enter the Command: Type or copy-paste the following command exactly as it appears here:
code Cmd
wmic bios get serialnumber
Hit Enter: The system will process the request for a split second and display your device's unique identifier directly below the command.
Understanding the Output
You will typically see two lines of text. The first line is the header (SerialNumber), and the second line is your alphanumeric code (e.g., 5CD93829H1). This is the code you need for warranty support or asset tracking.
Note for Windows 11 & 12 Users: While Microsoft has been slowly deprecating WMIC in favor of PowerShell, this command remains functional in most builds of Windows as of early 2026. If it fails, jump to the PowerShell section below.
Why You Need Your Serial Number
Before we dive into alternative methods, it is important to understand why this string of characters is so vital. Your serial number is not the same as your "Product Key" (used to activate Windows) or your "Model Number" (which thousands of other people share).
Warranty Services: Manufacturers like Dell, ASUS, and Acer require this number to validate your warranty status.
Driver Updates: To ensure you download the correct audio or graphics drivers, support websites often ask for the serial number to pinpoint your exact hardware configuration.
Insurance Claims: If your laptop is stolen, the police and your insurance company will require the serial number to identify the property.
Asset Management: For businesses, unique serials are used to assign specific hardware to specific employees.
The Modern Method: Using PowerShell
As Windows evolves, the classic Command Prompt is slowly taking a backseat to PowerShell. PowerShell is a more powerful, object-oriented automation engine. If you are running a modern version of Windows (10, 11, or 12), this is often the most reliable method.
Retrieving the Serial Number with PowerShell
Right-click the Start Button and select Terminal, PowerShell, or Windows PowerShell (Admin).
The beauty of PowerShell is that it queries the Common Information Model (CIM). This is a standard that allows different hardware components to describe themselves. The command above is cleaner and less likely to be removed in future Windows updates compared to the legacy wmic command.
Alternative Command: Using SystemInfo
If you prefer a broad overview of your system rather than just a single data point, the systeminfo command is a robust alternative. However, be warned: this command dumps a lot of data onto your screen.
To use it effectively to find your serial number via command prompt, you should use a filter.
The Filtered Command
Open Command Prompt.
Type the following:
code Cmd
systeminfo | findstr /I "BIOS Serial Number"
Press Enter.
The /I switch tells the system to ignore case sensitivity, ensuring it finds the line whether it is capitalized or not. This will return a single line showing your BIOS Serial Number.
Troubleshooting: "To Be Filled By O.E.M."
You have followed the steps perfectly. You typed the command, hit enter, and instead of a serial number, the screen reads: To be filled by O.E.M.
Do not panic. Your computer isn't broken.
What Does This Mean?
This message usually appears on custom-built PCs or smaller boutique laptop brands. When a large manufacturer like HP builds a PC, they flash the serial number into the BIOS chip at the factory.
However, if you built your own PC using a motherboard from MSI, Gigabyte, or ASUS, the motherboard manufacturer left that field blank because they didn't know the serial number of the final assembled system.
How to Find the Number in This Case
If the command prompt fails you here, you must rely on physical inspection:
The Motherboard Box: If you built the PC, check the original box.
The Sticker on the Board: Open your PC case. There is almost always a small sticker near the 24-pin power connector or the PCI-E slots on the motherboard itself containing the serial number.
Finding Serial Numbers for Hard Drives and Monitors
Sometimes, the serial number command prompt query you need isn't for the computer itself, but for a component inside it—like a failing hard drive you need to replace under warranty.
For Hard Drives and SSDs
Knowing which specific drive is failing is crucial. Here is how to get the serial number for your storage devices:
Open Command Prompt.
Type:
code Cmd
wmic diskdrive get model,name,serialnumber
Hit Enter.
This will list every drive connected to your system, its model name, and its unique serial number. This is incredibly useful if you have multiple drives of the same size and need to identify the correct one to swap out.
Non-Command Prompt Alternatives
While the command line is fast, some users simply prefer a graphical interface. If you are uncomfortable typing code, here are two other ways to find your information within Windows.
1. The Windows Settings App
In the latest updates of Windows 11 and 12, Microsoft has made this information easier to find.
Go to Settings.
Click on System.
Scroll down to About.
Look for the Windows Specifications or Device Specifications section. In many pre-built laptops, the serial number is listed here alongside the Device ID.
2. The BIOS/UEFI Menu
If your Windows installation is corrupted and you can't even boot to the desktop, you can still find your serial number.
Restart your computer.
Immediately press the BIOS key (usually F2, F10, Del, or Esc) repeatedly.
Once inside the BIOS menu, look for an "Information" or "Main" tab. The serial number is almost always listed there.
Frequently Asked Questions (FAQ)
Is the Device ID the same as the Serial Number?
No. The Device ID is a code generated by Windows to identify your unique installation of the operating system and hardware combination. The Serial Number is a hard-coded string assigned by the manufacturer to the physical hardware. If you reinstall Windows, your Device ID might change, but your Serial Number will stay the same.
Can I change my serial number using Command Prompt?
Generally, no. The serial number is burned into the firmware of the motherboard. While there are "spoofing" tools used by some advanced users (often for bypassing hardware bans in games), changing a serial number is risky, can void your warranty, and is not supported by standard Windows commands.
Does wmic work on Mac?
No, wmic is a Windows-exclusive command. On a Mac, you would open the Terminal app and type: ioreg -l | grep IOPlatformSerialNumber to achieve the same result.
Is it safe to share my serial number?
You should treat your serial number as semi-private. Do not post it on public forums or social media. A malicious actor could potentially use it to file a fraudulent warranty claim or report your device as stolen. Only share it with authorized support agents (like Microsoft, Dell, or Apple support).
Conclusion
Finding your computer’s unique identifier doesn't have to involve squinting at the bottom of a scratched laptop case or crawling under a dusty desk. With the serial number command prompt method (wmic bios get serialnumber), you can retrieve accurate information in seconds.
Whether you are troubleshooting a hardware failure, managing company assets, or simply checking your warranty status, mastering these simple commands empowers you to manage your technology more efficiently.
Ready to organize your tech life? Take a moment right now to run this command and save your serial number in a secure note app or password manager. You never know when you might need it, and having it handy when your PC won't turn on (via your notes) can save you a massive headache down the road.