Tech Dreams

Find Model Number and Serial Number Of Your Computer Using DOS Commands

Command-prompt

Desktops and Laptops purchased from manufactures like DELL, IBM, etc comes with a serial number(or service tag) and a model name. If you ever loose this information, then you can use MS DOS commands to retrieve the information

To retrieve serial number of the computer run the following command

wmic bios get serialnumber

To retrieve model name of the computer run the following command

wmic csproduct get name

78 Comments on Find Model Number and Serial Number Of Your Computer Using DOS Commands

  1. moshsrv
    August 10, 2010 at 3:25 pm (9 years ago)

    great work thx

    Reply
  2. P
    August 4, 2010 at 1:13 am (9 years ago)

    Thank you so much for posting this!

    Reply
  3. tahir
    July 20, 2010 at 11:30 pm (9 years ago)

    Does anyone know how you can look up a brand of a computer part? I have a firewire card and I need to know which drivers to download. I have the serial number.

    Reply
  4. Naveen
    July 8, 2010 at 11:46 am (9 years ago)

    really it’s very nice.

    Reply
  5. Abdul Sami
    July 6, 2010 at 7:21 pm (9 years ago)

    Thanks a lot man. This was very helpful for me. I accessed a server from RDC and used these commands to get the model name & serial number for remote support. This saved losing a client of mine.

    Reply
  6. tia
    June 14, 2010 at 11:10 am (9 years ago)

    the serial number command does not work. I have a gateway mt6451 model with vista sp2. does anyone know any other way to get the serial number? i don’t have the stickers on the computer and gateway will not help me with my problem w/o the serial number. i tried looking through the control panel> computer> system properties but it’s not there either.

    Reply
  7. pavan
    May 7, 2010 at 4:11 pm (9 years ago)

    dis cmd is working
    thank u

    Reply
  8. Juke
    April 29, 2010 at 6:13 am (9 years ago)

    Does anyone know how to retrieve Product Numbers??
    Serials/model numbers are quite easy but I have been unable to view p/n from HP machines.
    Any help would be great.

    Cheers,
    Juke

    Reply
  9. Yaro Kasear
    March 27, 2010 at 1:53 am (9 years ago)

    “Thank You Very Much‚Ķ. But is it any possible to see in remote system.”

    The Linux shell command will work on a remote system so long as the command is actually given on the remote system (IE, make sure its on a tunneled shell or on the remote desktop you’re connected to.)

    Reply
  10. S.Manikandan
    March 26, 2010 at 10:25 pm (9 years ago)

    Thank You Very Much…. But is it any possible to see in remote system.

    Reply
  11. F-J Mattmann
    March 26, 2010 at 8:27 pm (9 years ago)

    Thanks very much!
    I confirm that it works! (on my Lenovo R61)
    Great!

    Reply
  12. Yaro Kasear
    March 25, 2010 at 10:24 pm (9 years ago)

    “Fantastic! thanks, do you per any chanceknow how to do the same with a Unix-shell command in Linux (Ubuntu)?”

    hal-device | grep system.hardware.serial

    Reply
  13. F-J Mattmann
    March 16, 2010 at 4:42 pm (9 years ago)

    Fantastic! thanks, do you per any chanceknow how to do the same with a Unix-shell command in Linux (Ubuntu)?

    Reply
  14. Paul
    March 8, 2010 at 9:31 pm (9 years ago)

    Hello i have a warrenty for my laptop still outstanding but the serial number has rubbed off and without it can’t get cover (what a stupid way to print it on to a copmuter) Anyway that command comes up but when i click on it it’s just a black box that pops up for half a second then goes….don’t understand why anyone know what i have to do?

    Reply
  15. Yaro
    February 19, 2010 at 9:37 pm (9 years ago)

    @William – I recommend you boot up a Linux LiveCD made from a desktop distribution, such as Ubuntu. Such a LiveCD has HAL installed, and HAL has a command that lists every last detail it can rip from your hardware, including details on your mobo, chassis, kernel, CPU, memory, whatever.

    Keep in mind that homebuilt computers are not likely to have serial numbers because they are not part of a product line.

    Reply
  16. William
    February 16, 2010 at 11:49 pm (9 years ago)

    Hey thanks for the tips, only thing is this dosn’t show a ‘serial number’ for a computer which is not built by a big company. I deal with computers on a day to day basis (occationally stumbeling on a custome built pc), and usually have no proof of actually being there. I have been looking for a universal way to take a serial number from a windows computer that is unique and cannot be changed without removing parts from the computer. Is this something that exists or not? My issue is when I’m helping a customer with a computer, they can easily turn round and say ‘i aint paying’ and I would like to have the piece of mind that I can proove I have been in contact with the computer should I need to take any kind of court action. When I used the other command (csproduct…) I did get a number, but is this a universal number, or is it only universal to the network?

    Reply
  17. peter
    January 8, 2010 at 5:40 pm (9 years ago)

    this was really kool thnx

    Reply
  18. Srini
    November 20, 2009 at 6:27 pm (10 years ago)

    It Is Not working..

    Reply
  19. Gurpreet Singh
    November 18, 2009 at 6:11 pm (10 years ago)

    Its work fine and will very helpul to use as key for a particular softwares .

    Thanks

    Reply
  20. Nico
    November 15, 2009 at 3:05 pm (10 years ago)

    Angelo get out your high horse and get tuned into the times we live in. You intentions were sincere, but you have to realize that there are people out there who can take advantage of such forums ‘trying to help’ and mess up peoples computers. A lot of people searching for info are not always too technical nor from a development background. So they may trust and run scripts thinking of-course its from a secure source. But not everyones intentions are good as yours hence it was good for it to be removed. If anything else, paste the code in the forum and let people see and decipher.

    Gopinath thanks for the two commands,on my Sony Vaio the info was hardly visible so a great command – thanks.

    Reply
  21. Angelo
    November 11, 2009 at 7:42 pm (10 years ago)

    You seem a little exagerate, do you think that we are all here to waste time with fake helpful script?
    Besides, in any respectable blog/forum, someone test and approve the posts, my script is really able to help people in a box with hardware machine.
    It has really driven me crazy, it could be helpful for all Windows users and It’s used in very huge environment.
    Anyway no problem, I’ll put it in a real blog where users can take advantage of it.

    Reply
  22. Anonymous
    November 10, 2009 at 10:39 pm (10 years ago)

    I’m sure your script is meant to be safe and secure. The problem is that VBScript is terribly insecure. A great deal of viruses, and I mean a great deal, written for Windows are simple VBScripts aimed at Windows users under the guise of someone being helpful.

    You might be giving them something safe, but without knowledge or annotation of the code, what’s to stop the next guy with VBScript coming along from giving them something truly harmful?

    Now any other language, whether scripting or programming, or even simple commands, can be harmful.

    It’s the source of where you get the code/script/program/command you need to consider. Unfortunately, I wouldn’t really trust anything given in a blog unless I actually knew specific what it does.

    IE, I’d probably be fine running a pacman command that installs a lib, but if some joker attempts to trick me me into running a fork bomb, I’ll know the difference.

    But, the source is important. If this were a foum instead of a blog, or a known safe website, then all the power to you. Easier to control what goes on in those environments.

    But too often have people gone into blogs or IRC channels and say things like:

    “Having trouble getting X to start? Try this command: su -c ‘rm -rf /’

    Translated, that command means “With the privileges of root, delete everything recursively starting from the root directory on up.” That will also include all writeable media you’ve got connected to your computer and mounted. IE, it’ll wipe your hard disk AND your thumb drive if your not careful. A worse command would be su -c ‘dd if=/dev/zero of=/dev/sda’. With the privileges of root, directly set every byte in the first hard disk to 0.

    My friend, not even professional data recovery people can rescue your files if that command executes to completion.

    And no matter how secure your system is, the power of social engineering will overcome it if the user is not well-informed and the cracker is sneaky enough to pull it off.

    Yes, your script was safe. But I’d rather not see more people falling for malicious scripts in the future because of a trustworthy on on a random blog that doesn’t even explain what each line does.

    Reply
  23. Gopinath
    November 10, 2009 at 2:59 pm (10 years ago)

    Angelo,
    As I don’t know anything about VB Script, I removed one of your comments. Please don’t be offended. We never considered you as a hacker or attacker.

    I generally remove the content that I don’t understand.

    Reply
  24. Angelo
    November 10, 2009 at 2:03 pm (10 years ago)

    ey guys, you are crazy, you are just a little bit mad, that script was just to help people that need Hardware S.N., I’m not an hacker attacker.
    [moderated – few sentences are deleted]

    Reply
  25. Gopinath
    November 10, 2009 at 11:44 am (10 years ago)

    Anonymous,
    the vb script is deleted from the comments. The comment with the VB script was automatically approved by our system. We just had a look at that script and removed as we are not sure the implications of using the script.

    Reply
  26. Anonymous
    November 9, 2009 at 10:44 pm (10 years ago)

    VBScript. That’s the best Windows users can do? I don’t even need to write a script to figure out these things on Linux. Just need to talk to HAL, which is simple and easy.

    Never blindly use VBScripts because Windows’ lack of a security model allows even scripts to wreak havok on your system. Access control lists on Windows are virtually nonexistant.

    This VBScript might be safe, but its already plunging idiot Windows users into just blindly copying and executing VBScripts just because their authors claim they’re useful. It’s called social engineering.

    No wonder Windows machines get infected so damn much. Idiots with no sense whatsoever.

    Reply
  27. rajivgupta adv.
    November 6, 2009 at 10:28 pm (10 years ago)

    i want to dos command for get prosessor serial number or foxpro 2.6 dos command for get prosessor serial number

    Reply
  28. jordan
    October 21, 2009 at 10:45 pm (10 years ago)

    the S/N seems to work but the window that displays the number flashes for less than half a second then disappears, what does that mean?

    Reply
  29. Angelo
    October 7, 2009 at 1:56 pm (10 years ago)

    Thanks a lot, unfortunatly it doesn’t work on Windows nt system. :-(
    Do you know any other tools to get it?

    Reply
  30. Willy Dimitrov
    September 30, 2009 at 6:08 pm (10 years ago)

    Great the command works on the 2003 server also.Many thanks for this tool.

    Reply
  31. Lauren
    September 3, 2009 at 2:32 am (10 years ago)

    This is wonderful! It worked for me. All I had to do was go to Start > Run and then type cmd and click Open. After doing this then the information they provided worked.

    wmic bios get serialnumber

    wmic csproduct get name

    Reply
  32. Fukuda
    August 29, 2009 at 5:59 pm (10 years ago)

    But the a pc klon cannot display the serial number :(

    Reply
  33. Stephen
    August 22, 2009 at 12:50 pm (10 years ago)

    thank’s your a life saver

    Reply
  34. TT
    April 6, 2009 at 10:03 pm (10 years ago)

    worked for model number..but not for serial number it came as 000000000000 for serial no. please help me to solve the problem

    Reply
  35. Anonymous
    March 28, 2009 at 9:42 pm (10 years ago)

    Pfft. DOS is a pathatic command line.

    Reply
  36. ELI
    March 25, 2009 at 9:14 am (10 years ago)

    YOU ARE THE MAAAAANN!!!! THANKS!!!!

    I was looking for my model number for yyyeaaaarss because it was rubbed off…. now I can use my laptop!!! thanks!!!!!!!

    Reply
  37. stevieray
    March 9, 2009 at 2:43 am (10 years ago)

    awesome need to do an insurance inventory

    Reply
  38. -dan z-
    February 27, 2009 at 1:32 am (10 years ago)

    Only in XP Professsional or Win2003 according to Microsoft.

    Reply
  39. charles
    February 24, 2009 at 9:26 pm (10 years ago)

    woow! That simple

    Reply
  40. moidu
    February 5, 2009 at 3:03 am (10 years ago)

    It doesn”t work in my xp.

    Reply
  41. Chris M
    January 28, 2009 at 3:37 am (10 years ago)

    Didn’t work for me either. Says “wmic is not recognized as an internal or external command.”

    Reply
  42. tommy corbett
    January 19, 2009 at 3:53 pm (10 years ago)

    doesn’t work

    Reply
  43. Ryan
    January 17, 2009 at 4:50 am (10 years ago)

    Doesn’t work, just tried it with my IBM R40 and it did return numbers when I used those commands, but neither number corresponded with the serial number or model of the computer.

    Reply
  44. Rob
    January 10, 2009 at 8:03 am (10 years ago)

    This is amazing I bought my gateway laptop and my stickers rubbed off very quickly. Any time I would go to their website for support they wanted the model number or the serial number. The only sticker I have left on it is below the LCD that simply says M-Series. This is the best 2 commands I have used in CLI for years. Thanks I love Stumble!!!

    Reply
  45. Geoserv
    January 9, 2009 at 9:49 pm (10 years ago)

    STUMBLED!

    Nice one, I love finding tips like this online.

    Reply
    • Gopinath
      January 9, 2009 at 10:49 pm (10 years ago)

      Thank you very much for Stumbling

      Reply
  46. John
    January 9, 2009 at 12:49 am (10 years ago)

    Awesome. I’m a computer help desk tech. Getting the model and serial number can be the most tedious part of the job. I’ll share this with the other techs. Thank you!

    Reply
  47. ShelledOut
    December 25, 2008 at 1:25 am (11 years ago)

    Just a note that this code will only work under the windows command shell. it will not work however under real MSDOS 6.2

    Reply
  48. Vijay
    December 9, 2008 at 4:34 am (11 years ago)

    Bios serial number command is a brilliant one!

    Reply
  49. venkat
    December 9, 2008 at 1:50 pm (11 years ago)

    This is very useful. if we forgot serial number of the branded computers this command will be very useful ,because we can only find drivers based on the serial number.

    Reply

1Pingbacks & Trackbacks on Find Model Number and Serial Number Of Your Computer Using DOS Commands

Leave a reply