Use PowerShell to Find Your Computer Serial Number

by Eric Wyatt
(last updated August 17, 2020)


At times after you have purchased your computer, you might perform a task that requires you to know your computer's serial number. Your serial number helps with certain situations such as calling for tech support, or perhaps your insurance company wants the serial number for a detailed home inventory. Finding your serial number, if you purchased it from a company rather than building it yourself, can typically be done by moving the CPU around until you locate the sticker affixed to it. This can be problematic in that perhaps the CPU is not in a position to be moved around easily, or possibly you have to turn it upside down as you look for the sticker. So how can you locate the serial number for your computer without having to move your machine? The trick is to use PowerShell.

These steps assume that you have PowerShell set to be shown in the secondary Windows Menu. If not, look at this article explaining how to configure PowerShell to be shown.

  1. Right-click on the Start button. Windows displays the secondary Windows Start Menu.
  2. Choose Windows PowerShell (Admin). (Make sure it is the Admin option, not the Windows PowerShell option without the Admin privileges.) Windows displays the User Account Control asking if you want to allow changes to be made.
  3. Click Yes. The dialog box disappears, and the PowerShell Command Prompt window is displayed. The window will say Administrator in the top-left corner.
  4. At the command prompt, type the following and then press Enter. You can also copy and paste the command directly into the PowerShell command prompt.
  5. Get-WmiObject win32_bios | select Serialnumber
  6. PowerShell displays the serial number. (See Figure 1.)
  7. Figure 1. A computer's serial number displayed in PowerShell.

  8. Close the PowerShell command prompt window.

If you follow these steps and you receive a serial number of "To be filled by O.E.M.", this means your Original Equipment Manufacturer did not save the serial number to the computer's BIOS or UEFI (Unified Extensible Firmware Interface) firmware.

With this handy PowerShell trick, you can now easily access your computer's serial number when you need it, without needing to move your computer around or rearrange everything at your desk.

 This tip (7702) applies to Windows 10.

Author Bio

Eric Wyatt

Eric Wyatt is a swell guy (or so his friends tell him). He is a formally trained designer and branding expert, bringing a wide range of skills to his Tips.Net articles. ...


Quickly Hiding Desktop Icons

Your Windows desktop can become crowded and messy. When you need to show your desktop to other people, Windows 10 allows ...

Discover More

Taking Control of Your Storage Space

Storage space on your computer is vitally important. New storage settings introduced in Windows 10 Version 1903 provides ...

Discover More

Introducing Power Automate

Microsoft's Power Automate is a powerful feature that can reduce the tedium involved with performing repetitive tasks. ...

Discover More
More WindowsTips

Check your PC's Uptime with PowerShell

Every time a computer restarts, it runs through processes that help its performance. You can use PowerShell to see how ...

Discover More

Introduction to PowerShell

PowerShell is found on all modern Windows computers. You might think of it as the next step up from the command line .bat ...

Discover More

Using PowerShell to Find Your Wireless Signal Strength

Wi-Fi signal strength is important for faster, more consistent data transfers. You can use PowerShell to gain a more ...

Discover More

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is five more than 2?

2021-05-20 10:16:09


How could I use that found serial number in a powershell script to change the computer name to something like "W10-SerialNumber"?

2020-08-17 12:07:52

Bill Bulling

Getting Error on my Dell Inspiron-580 in PowerShell 7.0.3:

Get-WmiObject: The term 'Get-WmiObject' is not recognized as the name of a cmdlet, function, script file, or operable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

2020-08-17 10:32:34


@ Geoffrey yes, each computer, depending on the manufacturer could have a slightly different string listing if the serial number was not included.

2020-08-17 10:30:56


@Glenn thanks for the catch, I apologize for the mistake. If you refresh the page the link will work now.

2020-08-17 09:53:52

Geoffrey Robb

Hi Eric

My computer says "Default String" when I follow the instructions above. I guess in my case it is not coded into the BIOS

2020-08-17 08:43:54


Your link in the article, "how to configure PowerShell to be shown," doesn't tell me how to configure PowerShell. Instead it points at Win10 shortcut keys.

Newest Tips

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.