You can determine your computer’s serial number without checking the firmware or sticker, and here’s how to accomplish the task on Windows 10.

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

  4. Confirm the SerialNumber information.
  5. (Optional) Type the following command to determine device serial number and press Enter:

    Get-CIMInstance win32_bios | format-list SerialNumber

  6. Confirm the SerialNumber information.
  7. (Optional) Type the following command to export the serial information to a text file and press Enter:

    Get-WmiObject win32_bios | select Serialnumber > PATHTOEXPORT

    In the command, make sure to replace “PATHTOEXPORT” 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

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

  4. Confirm the computer serial number.
  5. (Optional) Type the following command to export the serial information to a text file and press Enter:

    wmic bios get SerialNumber > PATHTOEXPORT

    In the command, make sure to replace “PATHTOEXPORT” 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

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.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources: