How to Find the Serial Number of Your PC in the Windows 11 Command Prompt

Whether you need to check your warranty status, download a specific driver update from the manufacturer’s website, or contact technical support, you will inevitably need your computer’s exact serial number.

If you have a desktop PC, this number is usually printed on a small sticker located on the back or bottom of the case. However, over time, these stickers can easily peel off, become scratched, or fade into illegibility. Fortunately, you do not need to crawl under your desk with a flashlight to find it. Windows 11 can retrieve the serial number directly from the motherboard’s BIOS using a single command in the Command Prompt.

How to Find Your Serial Number

To pull this information, we will use the Windows Management Instrumentation Command-line (WMIC) utility. This built-in tool allows you to query the underlying hardware of your machine directly.

  1. Click the Start Button in Windows 11.
  2. Type cmd into the search bar.
  3. When “Command Prompt” appears in the search results, click on it to open the terminal window. (You do not need to run it as an Administrator for this specific command).
  4. Type the following command exactly as it appears, then press Enter:
wmic bios get serialnumber

The Command Prompt will immediately output two lines of text. The first line will simply say “SerialNumber”. The second line will display your exact alphanumeric serial number.

You can highlight this number with your mouse and press Ctrl + C to copy it directly to your clipboard, making it incredibly easy to paste into a support chat window.

Why Might the Output Be Blank?

In the vast majority of cases—especially if you bought a pre-built PC or a laptop from a major manufacturer like Dell, HP, Lenovo, or ASUS—the serial number will appear instantly.

However, if you type the command and the space below “SerialNumber” is completely blank, or if it says something generic like “To be filled by O.E.M.”, this simply means you built the computer yourself (or a small boutique shop built it for you). When you buy a standalone motherboard to build a custom gaming PC, the manufacturer rarely hard-codes a system-level serial number into the BIOS, as it is not a complete, pre-configured system.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.