How to find computer serial numbers on Windows 10

Get PC serial number using PowerShell
Get PC serial number using PowerShell (Image credit: Windows Central)

Source: Windows Central (Image credit: Source: Windows Central)

On Windows 10, the ability to check the computer serial number can come in handy in many scenarios. For instance, when you need to create an inventory of the devices connected to your home network or organization, or need to contact technical support to troubleshoot a problem, order a replacement part, or check the warranty information.

Usually, you can find the required information on the sticker affixed on the back or bottom of your laptop or desktop, or checking the Basic Input/Output System (BIOS) or Unified Extensible Firmware Interface (UEFI) on your motherboard. However, if the sticker isn't available or you don't want to go through extra steps to access firmware, you can also use PowerShell and Command Prompt to retrieve this information quickly on Windows 10.

In addition, using commands can be useful to automate the process using a script when you need to retrieve the serial information from multiple devices.

In this Windows 10 guide, we'll walk you through the steps to quickly find your device serial number using command lines.

How to determine PC serial number using PowerShell

To retrieve the serial number of your computer with a PowerShell command, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to find out the computer serial number and press Enter:Get-WmiObject win32_bios | select Serialnumber
  1. Confirm the SerialNumber information.
  2. (Optional) Type the following command to determine device serial number and press Enter:Get-CIMInstance win32_bios | format-list SerialNumber
  3. Confirm the SerialNumber information.
  4. (Optional) Type the following command to export the serial information to a text file and press Enter:Get-WmiObject win32_bios | select Serialnumber > PATH\TO\EXPORTIn the command, make sure to replace "PATH\TO\EXPORT" with the path to the text file you want to export the serial number information.For example, this command exports the output to the ComputerSerial.txt file in the C drive:Get-WmiObject win32_bios | select Serialnumber > C:\ComputerSerial.txt

Source: Windows Central (Image credit: Source: Windows Central)

Once you complete the steps, you'll know the serial number of your desktop or laptop computer.

If you are using the command to export the output, you'll find the file in folder location you specified. Also, since you exported it as a text format, you can open it with Notepad or any other text editor.

How to determine PC serial number using Command Prompt

To check the device serial number using a Command Prompt command, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to find out the computer serial number and press Enter:wmic bios get SerialNumber

Source: Windows Central (Image credit: Source: Windows Central)
  1. Confirm the computer serial number.
  2. (Optional) Type the following command to export the serial information to a text file and press Enter:wmic bios get SerialNumber > PATH\TO\EXPORTIn the command, make sure to replace "PATH\TO\EXPORT" with the path to the text file you want to export the serial number information.For example, this command exports the output to the ComputerSerial.txt file in the C drive:wmic bios get SerialNumber > C:\ComputerSerial.txt

Source: Windows Central (Image credit: Source: Windows Central)

After you complete the steps, the command will return the serial number without needing to access the BIOS or going behind the device to look for the sticker.

Although these commands will work on any computer, custom-build devices don't have a serial number. This means that the command output may read "To Be Filled By O.E.M."

If you're looking to retrieve the device model number, you can use these instructions.

Mauro Huculak

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.

Read more
Open Command Prompt on Windows 10
How to launch Command Prompt (standard and admin) on Windows 10
Windows 10 Change Printer Name
How to rename your printer on Windows 10
PowerShell basic commands
15 Essential PowerShell commands every Windows 11 user should know
Windows 11 Advanced Display Information
How to find monitor information and features on Windows 11
Convert MBR to GPT on Windows 10
How to convert MBR to GPT drive to switch BIOS to UEFI on Windows 10
Windows 11 powercfg commands
How to use powercfg to control power settings on Windows 10 and 11
Latest in Windows 10
Windows 10 Find My Device
How to enable Find My Device on Windows 10 to recover your PC if it's ever lost or stolen
Outlook Client Hero
Microsoft just made Windows 10 worse, and there's (almost) nothing you can do about it
Windows 10 Start menu on HP ZBook Studio G4
Microsoft will retroactively downgrade this part of Windows 10 next month
Former Microsoft Executive Vice President Terry Myerson stands in front of a presentation about Windows 10
Microsoft addresses the 'elephant in the room,' discusses upcoming end of Windows 10 support
Surface Hub 2S
Windows 10 for PCs is not the only version of Windows to reach end of support this year
Windows Insider program settings
Microsoft shuts down the Windows 10 Beta Channel just five months after reopening it
Latest in How-to
The First Berserker: Khazan
Is The First Berserker: Khazan on Xbox Game Pass?
Clair Obscur: Expedition 33
Is Clair Obscur: Expedition 33 on Xbox Game Pass?
A close-up of Hazel in South of Midnight
Is South of Midnight on Xbox Game Pass?
Atomfall screenshot
Atomfall: How to grab the best melee weapon and melee perk right away
Atomfall District B
Atomfall: How to open District B, get inside the Robot Facility, and grab the Signal Redirector
Atomfall District A photo
Atomfall: How to open District A and get inside the Medical Facility