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

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

Rate This
  • Comments 47

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

Leave a Comment
  • Please add 6 and 7 and type the answer here:
  • Post
  • Get all computer details for most manufactuers

    Get Serial Number - In Command enter

     wmic bios get serialnumber

    Get Model #

     wmic computersystem get oemstringarray

    Get Product Number (Not needed usually)

     wmic csproduct get name

  • Thanks mate!!  Life saver

  • thank u very much

  • yes really very nice

  • Below wil put the serialnumber in a text file on your desktop:

    wmic /output:"%userprofile%\desktop\serial.txt" bios get serialnumber

  • some one told me that at least a computer must have 10 digits as its serial number,but when i tried type using that command it gave me 6 digits,what is the difference?am using HP

  • Thanks.It is very helpful to confirm serial number for my servers.

  • my serial no. is showing reserved plzzz. help ... my model is sony vpceh16eh os is win8

  • Saved our life during an Inventory...

  • Thanks Marcy. Hope it helped :)

    Regards,

    Aviraj Ajgekar

  • Thanks

  • Thanks for the quick way to get the serial number!

  • thanx alot its very easy instead of going to all user's can check by using remote.

  • This pulls the logical serial number and not the hw serial number.

    would you know how to read the hw s/n?

  • Thanks a lot man !!!

Page 3 of 4 (47 items) 1234