Partilhar via


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

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 https://support.microsoft.com/kb/558124

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

Hope you enjoy !!!

Update: Corrected syntax in the command

Comments

  • Anonymous
    January 01, 2003
    use full tips

  • Anonymous
    January 01, 2003
    But can I get the Windows serial number after getting the HP serial number?

  • Anonymous
    January 01, 2003
    but some computer does not output any serial number. do you guys know why?

  • Anonymous
    January 01, 2003
    for Linux use dmidecode and grep -i serial

  • Anonymous
    January 01, 2003
    good dear

  • Anonymous
    January 01, 2003
    nice thank you :)

  • Anonymous
    January 01, 2003
    nice thank you :)

  • Anonymous
    January 01, 2003
    Thanks a ton for this.

  • Anonymous
    January 01, 2003
    Thanks Marcy. Hope it helped :) Regards, Aviraj Ajgekar

  • Anonymous
    January 01, 2003
    You need to be logged in as the administrator in order to perform most command prompt commands. Hence it works on some machines, and on some it doesn't.

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

  • Anonymous
    August 16, 2010
    Hello, serial number should be "SerialNumber"

  • Anonymous
    November 22, 2010
    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.

  • Anonymous
    December 07, 2010
    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

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

  • Anonymous
    March 23, 2011
    this cammand is very good to see your system serial number

  • Anonymous
    March 28, 2011
    really good ....thanks a lot

  • Anonymous
    June 20, 2011
    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 !

  • Anonymous
    October 09, 2011
    Thank you!

  • Anonymous
    October 27, 2011
    really helps me to find my Laptop serial..thanks a lot!!

  • Anonymous
    November 24, 2011
    Thanks very much guys

  • Anonymous
    December 01, 2011
    Hi Aviraj, it is useful but fails for some of the system :( what could be the reason? Thanks, Anil

  • Anonymous
    December 12, 2011
    Awesome! So helpful! Thank you!

  • Anonymous
    December 18, 2011
    Thanx a lot. Helped out a lot !!! Cheers !!!

  • Anonymous
    December 29, 2011
    Its very nice and helpfull

  • Anonymous
    January 11, 2012
    Thank you. This was very helpful

  • Anonymous
    January 14, 2012
    Thanks for support

  • Anonymous
    January 30, 2012
    Hello Thank for lot good support

  • Anonymous
    March 19, 2012
    WMI is a good feature. It saves lots of developer's time. Thanks!

  • Anonymous
    March 26, 2012
    nice Thanks

  • Anonymous
    April 15, 2012
    its excellent its more helpful to every body

  • Anonymous
    May 10, 2012
    I appreciate its extremely good tips. Thanks Aviraj

  • Anonymous
    May 13, 2012
    no i can't watch the serial number

  • Anonymous
    June 19, 2012
    Thanks i want to find model no and serial no

  • Anonymous
    June 21, 2012
    thanx Aviraj

  • Anonymous
    June 21, 2012
    Thank u Aviraj its reallr a great tip

  • Anonymous
    August 07, 2012
    excellent

  • Anonymous
    August 09, 2012
    This is very good command to find any kind of serial numbers. can u help to below commands usage. /role /cpu management /computer management..........etc.

  • Anonymous
    August 25, 2012
    Some times it is not working on some servers I have check physically s.n. it is SGH...... in that series and though this command gets. 9310........... in that series.. pls sugest...??

  • Anonymous
    September 08, 2012
    If you Would like to know Serial number, now it's easy to know through this script Copy and paste it on Notepad and save it serialnumber.vbs On Error Resume Next Dim strComputer strComputer = InputBox("Enter the name of the computer:") Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!" & strComputer & "rootcimv2") Set colSMBIOS = objWMIService.ExecQuery ("Select * from Win32_SystemEnclosure") For Each objSMBIOS in colSMBIOS MsgBox strComputer & ": " & objSMBIOS.SerialNumber Next In open you must type computer name and click ok Enjoy

  • Anonymous
    September 17, 2012
    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

  • Anonymous
    October 02, 2012
    Thanks mate!!  Life saver

  • Anonymous
    October 15, 2012
    thank u very much

  • Anonymous
    October 30, 2012
    yes really very nice

  • Anonymous
    November 06, 2012
    Below wil put the serialnumber in a text file on your desktop: wmic /output:"%userprofile%desktopserial.txt" bios get serialnumber

  • Anonymous
    December 13, 2012
    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

  • Anonymous
    January 29, 2013
    Thanks.It is very helpful to confirm serial number for my servers.

  • Anonymous
    March 12, 2013
    my serial no. is showing reserved plzzz. help ... my model is sony vpceh16eh os is win8

  • Anonymous
    April 11, 2013
    Saved our life during an Inventory...

  • Anonymous
    April 30, 2013
    Thanks

  • Anonymous
    May 08, 2013
    Thanks for the quick way to get the serial number!

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

  • Anonymous
    May 22, 2013
    This pulls the logical serial number and not the hw serial number. would you know how to read the hw s/n?

  • Anonymous
    June 06, 2013
    Thanks a lot man !!!

  • Anonymous
    June 06, 2013
    Thanks

  • Anonymous
    June 09, 2013
    I have Lenovo laptops. How do I use this wmic to find the machine type and computer name?

  • Anonymous
    July 10, 2013
    How can i find the serial number from a Linux Machine?

  • Anonymous
    July 22, 2013
    Requesting how to locate Serial Number for Panasonic MultiFunction phone/fax unit. Panasonic Multifunction Model is KX-MB2061. What would serial number begin with L, s, etc? Thank you,  Betty

  • Anonymous
    July 24, 2013
    Thank you it helped

  • Anonymous
    August 02, 2013
    The comment has been removed

  • Anonymous
    August 28, 2013
    Hi, there is no saw in window operating system XP. i was type "wmic bios get serialnumber" and also type "wmic bios get SerialNumber" but no saw pl. help

  • Anonymous
    August 30, 2013
    Thank you,the wmic bios get serialnumber is usefull.

  • Anonymous
    September 05, 2013
    the command was not working its says alias not found

  • Anonymous
    September 05, 2013
    I didn't know this, it became much handy for a laptop without bottom's tags. Thank you1

  • Anonymous
    October 17, 2013
    Cool thanks

  • Anonymous
    October 29, 2013
    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.

  • Anonymous
    November 13, 2013
    Thanks Burhan.. great post, u did well.. anyway thanks

  • Anonymous
    December 09, 2013
    I want see serial number on windows 8, It's not working on windows 8 :P

  • Anonymous
    January 23, 2014
    Thanks for the Post.

  • Anonymous
    February 03, 2014
    You can get the serial number using the below mentioned dos command. wmic bios get serialnumber

  • Anonymous
    February 12, 2014
    I got a blank reply. what does it mean?

  • Anonymous
    February 14, 2014
    how do i get the MAC id of the computer

  • Anonymous
    February 15, 2014
    THANS....................

  • Anonymous
    February 22, 2014
    Here is the link to check mother board serial no using command prompt: http://answers-free.blogspot.in/2014/02/how-to-find-mother-board-serial-number.html

  • Anonymous
    February 28, 2014
    Cool.........

  • Anonymous
    March 01, 2014
    It worked perfectly for me

  • Anonymous
    March 03, 2014
    worried alot about model or serial number todownload ....ask friends but no soulation but this command is awesome........i am realy tankfull to the person who post it ...thankyou so much...Sir...it was really helpful..

  • Anonymous
    March 03, 2014
    worried alot about model or serial number todownload ....ask friends but no soulation but this command is awesome........i am realy tankfull to the person who post it ...thankyou so much...Sir...it was really helpful..

  • Anonymous
    March 04, 2014
    thanks for providing useful info to us

  • Anonymous
    March 07, 2014
    This Command not working

  • Anonymous
    March 12, 2014
    Thanks

  • Anonymous
    March 14, 2014
    Thank you for this post !

  • Anonymous
    March 24, 2014
    I'm new to laptops, how do search for the command prompt ? i'm still trying to learn how to use a laptop

  • Anonymous
    March 26, 2014
    thanx very much.......dear

  • Anonymous
    March 30, 2014
    L3LT603

  • Anonymous
    April 05, 2014
    thanks for ur info

  • Anonymous
    April 08, 2014
    I got the message ' Serial Number to be filled by O.E.M.' But not serial number

  • Anonymous
    April 14, 2014
    This command only work in server

  • Anonymous
    April 15, 2014
    How to get the same in Windows server 2008, given command is not working on 2008.

  • Anonymous
    April 17, 2014
    Follow the steps in windows :
    1. Start
    2. All programs
    3. Accessories
    4. System tools
    5. System information

    You will get the information about your system.

    Thanks !

  • Anonymous
    April 17, 2014
    Follow the steps in windows :
    1. Start
    2. All programs
    3. Accessories
    4. System tools
    5. System information

    You will get the information about your system.

    Thanks !

  • Anonymous
    April 17, 2014
    Yeah I have windowss 8 and I wonder how to open the WMIC.

  • Anonymous
    April 17, 2014
    Yeah actually it helped out quite a tad thanks :)

  • Anonymous
    April 22, 2014
    Great

  • Anonymous
    May 22, 2014
    That's great, with My HP ProBook I initially had to switch off and remove the battery in order to know the serial number. Thumbs up for sharing this information.

  • Anonymous
    May 22, 2014
    thans a lote

  • Anonymous
    May 25, 2014
    Good to look serial no , Thanks

  • Anonymous
    May 25, 2014
    Good to look serial no , Thanks

  • Anonymous
    May 25, 2014
    Good to look serial no , Thanks

  • Anonymous
    May 27, 2014
    great experience
    thanks

  • Anonymous
    June 02, 2014
    Thanks a lot..!!

  • Anonymous
    June 09, 2014
    thanks.. that quick..

  • Anonymous
    June 13, 2014
    superb :)

  • Anonymous
    June 16, 2014
    Thank you so much

  • Anonymous
    June 22, 2014
    THANKS

  • Anonymous
    June 25, 2014
    Bless!

  • Anonymous
    June 27, 2014
    thank you

  • Anonymous
    July 02, 2014
    Good :)

  • Anonymous
    July 10, 2014
    Great tip thankyou...

  • Anonymous
    August 07, 2014
    Thanks sir

  • Anonymous
    August 12, 2014
    Hi,

    Thank you! It helped :)

  • Anonymous
    August 14, 2014
    Thanks Aviraj jee.

  • Anonymous
    August 19, 2014
    Thanks

  • Anonymous
    August 25, 2014
    Thanks. Nice command.

  • Anonymous
    August 30, 2014
    this command super

  • Anonymous
    September 01, 2014
    good

  • Anonymous
    September 02, 2014
    thank you nice

  • Anonymous
    September 02, 2014
    Thank you. really helpful.

  • Anonymous
    September 04, 2014
    Thank you very much Mr.Aviraj Ajgekar.MSFT

  • Anonymous
    September 10, 2014
    My serial number which is on laptop outer body is different from your run command

  • Anonymous
    September 11, 2014
    Thank You Very Much....

  • Anonymous
    September 15, 2014
    thanq... it's really helpful

  • Anonymous
    September 17, 2014
    Excellent...Very useful..appreciate for the great help...

  • Anonymous
    September 22, 2014
    I also had the same requirement and this one helped me in retrieving serial number. But i required model number too as the print on laptop had vanished after years of usage. In the below article i found the way to retrieve serial number also.
    http://kranthi-findings.blogspot.in/2014/09/how-to-find-laptop-or-machine-serial.html

  • Anonymous
    January 20, 2015
    thanks

  • Anonymous
    January 24, 2015
    Thanks much! It was really so easy!!!

  • Anonymous
    January 27, 2015
    wmic bios get serialnumber

  • Anonymous
    February 05, 2015
    Tanks bro

  • Anonymous
    February 06, 2015
    it's great

  • Anonymous
    February 10, 2015
    Mine says this instead of a serial number:
    to be filled by O.E.M

  • Anonymous
    February 12, 2015
    very nice :) thanx

  • Anonymous
    February 17, 2015
    Tnx alot...keep it up please

  • Anonymous
    February 25, 2015
    Thanks

  • Anonymous
    March 01, 2015
    tnx bro

  • Anonymous
    March 03, 2015
    Very interesting, and was very helpfull to me today. Thank you!!

  • Anonymous
    March 10, 2015
    After giving this command still i am not getting the serial number

  • Anonymous
    March 12, 2015
    i find the serial number is same with the sticker behind my laptop, but the vendor doesnt recognize the serial number -,- what the

  • Anonymous
    March 17, 2015
    thank you very much

  • Anonymous
    March 29, 2015
    Does not work on ASUS

  • Anonymous
    April 03, 2015
    worked great thanks

  • Anonymous
    May 28, 2015
    that command is awesome

  • Anonymous
    June 02, 2015
    Thank you

  • Anonymous
    June 03, 2015
    Thanks its help for me.

  • Anonymous
    June 14, 2015
    when i run thos command i get "system not reconize command" any idea on reason?

  • Anonymous
    June 19, 2015
    This is useful and works

  • Anonymous
    June 19, 2015
    THANKS

  • Anonymous
    June 22, 2015
    i want monitor serial number in command prompt ,,, pls post that command

  • Anonymous
    June 22, 2015
    thank you for that

  • Anonymous
    June 23, 2015
    tnx

  • Anonymous
    June 23, 2015
    thanks

  • Anonymous
    July 07, 2015
    Thank you, i am used simply to know my PC serial number.

  • Anonymous
    July 15, 2015
    command is working but need all devices serial number like as monitor, keyboard , mouse & CPU

  • Anonymous
    August 03, 2015
    awesome !!!!

  • Anonymous
    August 04, 2015
    the command is not working in my hcl beanstalk system

  • Anonymous
    August 08, 2015
    am being told that 'c' is not recognized as internal or external command what may be the problem?

  • Anonymous
    August 09, 2015
    Go to " run "
    Type " Wmic "
    it will take you to CLI then Type " csproduct "
    it will display the all important info like Pc serial number, Model, Vendor, UUID, etc