How to find a machine serial number from command prompt using WMI

How to find a machine serial number from command prompt using WMI

  • Comments 109
  • Likes

Ever wonder how can you find laptop serial number using command prompt???

Here is a quick command that you can use to find the Serial Number of your machine.

To find the serial number, open command prompt (cmd) and type the following command.

c:\>wmic bios get serialnumber

This will give you your machine’s serial number by pulling the information from BIOS. This is how it will look like.

image

If you are interested in scripting the same visit http://support.microsoft.com/kb/558124

WMIC (Windows Management Instrumentation Command-Line) http://msdn.microsoft.com/en-us/library/aa394531(VS.85).aspx

Hope you enjoy !!!

Update: Corrected syntax in the command

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Hello, serial number should be "SerialNumber"

  • Thanks Burhan, but even the serialnumber works. You can refer the support link support.microsoft.com/.../558124 :)

  • Thank you very much. I was finding it tediuos to look at the back of a computer each time I try check a machine's serial number.

  • Is there a way to get the SKU product # for HP machines.

    When I run csproduct get name, all I get is the Computer Type description.

    I need the model#'s to find out the warranty

  • No he meant your command states "serial number" as two words, not one word "serialnumber". Yes, upper and lower case in serialnumber works.

  • this cammand is very good to see your system serial number

  • really good ....thanks a lot

  • Hello, I gave this commande to someone and here's the message he got:

    wmic bios get serialnumber does not seem to work. Error message notes that only administrator group members can use WMIC.EXE.

    Is that right that only administrators on a pc can use this command ?

    Thank you !

  • Thank you!

  • really helps me to find my Laptop serial..thanks a lot!!

  • Thanks very much guys

  • Hi Aviraj,

    it is useful but fails for some of the system :( what could be the reason?

    Thanks,

    Anil

  • Awesome! So helpful! Thank you!

  • Thanx a lot. Helped out a lot !!!

    Cheers !!!

  • Its very nice and helpfull