Looking for your laptop’s serial number quickly? The Command Prompt (cmd) in Windows has a built-in way to retrieve it without extra steps—just run a few simple commands. You’ll get the number directly, whether it’s used for warranty checks, asset tracking, or reselling. No third-party tools or manual searches required.

What You'll Need

  • Windows 7 or later (native cmd methods work best on these)
  • A laptop with the Windows operating system installed
  • A Windows Command Prompt open (right-click Start > "Command Prompt" or search for it)

Step-by-Step

  1. Open Command Prompt as Administrator (if prompted): Press Win + X on your keyboard, then select Command Prompt (Admin) from the menu. If UAC asks, click Yes. This ensures you have full system access for reading hardware IDs.
  2. Run the diskpart command: Type diskpart and press Enter. You’ll see a prompt asking for confirmation—press Y and hit Enter again to proceed.
  3. List all disks and identify your laptop: At the diskpart prompt, type list disk and press Enter. Your laptop’s disk will appear as the first entry (usually Disk 0). Verify it’s correct by checking the size (e.g., 128GB, 512GB)—this confirms you’re targeting the right device.
  4. Select your disk and show details: Type select disk 0 (adjust the number if your laptop uses Disk 1 or higher) and press Enter. Then run details disk and press Enter. Look for the SerialNumber field under the disk’s properties.
  5. Exit diskpart: Type exit when done, then close the Command Prompt window. If the serial number isn’t listed here, proceed to the alternative method below.

Alternative Method (Windows Registry Direct Access)

  1. Open Registry Editor: Press Win + R, type regedit, and press Enter. The Registry Editor will open. Backup your registry first by clicking File > Export (save to a secure location).
  2. Navigate to the serial number key: In the left panel, browse to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ROOT\ Paste the path in the address bar, then press Enter. Look for a folder labeled with your laptop’s hardware ID (e.g., PCI\VEN_100D&DEV_9F91—this is a generic example; the exact ID varies by manufacturer).
  3. Find the serial number: In the right pane, look for a key named FriendlyName or VID_PID, then drill down further to a key called Data. Some laptops store the serial number under a subkey named SerialNumber or S/N. Right-click the key, select Export to copy it.

Common Mistakes

1. Using the wrong disk number: If list disk shows multiple disks, ensure you’re selecting the correct one (Disk 0 for most laptops).

2. Missing the serial number: Some laptops hide the serial number in hidden registry keys or firmware. If the diskpart method doesn’t yield results, try the registry method with patience—some manufacturers use different paths.

3. Forcing admin access too early: If you open Command Prompt as Administrator before running diskpart, you may get permission errors. Always run diskpart after admin privileges are granted.

Tips

1. **For laptops with UEFI/BIOS serial numbers**: Some manufacturers (e.g., Dell, HP) store the serial number in the BIOS/UEFI firmware. To check, boot into the BIOS (usually Del, F2, or F12 keys during startup) and look for a "Serial Number" field.

2. **Third-party tools vs. native methods**: Tools like wmic or wmi commands (e.g., wmic csproduct get uuid) can sometimes reveal partial serial numbers but are unreliable across all models. The registry method is more consistent.

3. **Storing the serial number**: Copy the serial number directly into a text file or save it in a cloud folder for quick reference.

Troubleshooting

If diskpart doesn’t show the serial number: 1. Check if your laptop is dual-booting or has multiple OS partitions. Run diskpart again and list disks again to confirm you’re targeting the correct partition. 2. If the disk shows as BootDisk, this means it’s the system partition and may not contain the serial number in diskpart. Try the registry method instead. 3. Some laptops use encrypted disks (BitLocker). If you’re prompted for the decryption key, type it manually (if you know it) or try the registry method to bypass this step.

If the registry method fails: - Some laptops hide the serial number in a different registry path (e.g., under SYSTEM\CurrentControlSet\Enum\ROOT\ with a different vendor ID). Navigate carefully and search for SerialNumber or SN in the key names. - If the key doesn’t exist, the manufacturer may not store the serial number in the OS—try the BIOS method or contact support for the exact number.

Frequently Asked Questions

Where can I find my laptop’s serial number if Command Prompt methods don’t work?

The serial number is often printed on a sticker on the bottom or back of the laptop. If you’re selling or returning it, many retailers accept this as proof of ownership.

Does this method work for Windows 10/11 laptops?

Yes, these steps work on all modern Windows versions (7, 8, 10, 11) as long as you’re running the commands in an admin prompt. The registry path may vary slightly by manufacturer, but the core method remains the same.

Can I find the serial number without admin rights?

No—most built-in methods (diskpart, registry access) require admin privileges. If you don’t have admin access, you’ll need to run the commands in an elevated Command Prompt or check the BIOS.

Why isn’t my laptop’s serial number showing in diskpart?

It may not be stored in the OS partition. Some laptops hide the serial number in firmware/BIOS or use a third-party tool. Try the registry method or check the BIOS during startup.

How do I verify the serial number is correct?

Compare it with the sticker on your laptop or search the manufacturer’s website for your exact model. If they don’t match, the number may be a partial or system-assigned ID.

Can I use this method on a Mac?

No. Macs use a different system (Apple Hardware Information tool via Terminal) and do not support diskpart or registry methods. Check the Mac system report via System Information in Applications > Utilities.