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.
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 tipsAnonymous
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 serialAnonymous
January 01, 2003
good dearAnonymous
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 AjgekarAnonymous
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 warrantyAnonymous
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 numberAnonymous
March 28, 2011
really good ....thanks a lotAnonymous
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 guysAnonymous
December 01, 2011
Hi Aviraj, it is useful but fails for some of the system :( what could be the reason? Thanks, AnilAnonymous
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 helpfullAnonymous
January 11, 2012
Thank you. This was very helpfulAnonymous
January 14, 2012
Thanks for supportAnonymous
January 30, 2012
Hello Thank for lot good supportAnonymous
March 19, 2012
WMI is a good feature. It saves lots of developer's time. Thanks!Anonymous
March 26, 2012
nice ThanksAnonymous
April 15, 2012
its excellent its more helpful to every bodyAnonymous
May 10, 2012
I appreciate its extremely good tips. Thanks AvirajAnonymous
May 13, 2012
no i can't watch the serial numberAnonymous
June 19, 2012
Thanks i want to find model no and serial noAnonymous
June 21, 2012
thanx AvirajAnonymous
June 21, 2012
Thank u Aviraj its reallr a great tipAnonymous
August 07, 2012
excellentAnonymous
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 EnjoyAnonymous
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 nameAnonymous
October 02, 2012
Thanks mate!! Life saverAnonymous
October 15, 2012
thank u very muchAnonymous
October 30, 2012
yes really very niceAnonymous
November 06, 2012
Below wil put the serialnumber in a text file on your desktop: wmic /output:"%userprofile%desktopserial.txt" bios get serialnumberAnonymous
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 HPAnonymous
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 win8Anonymous
April 11, 2013
Saved our life during an Inventory...Anonymous
April 30, 2013
ThanksAnonymous
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
ThanksAnonymous
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, BettyAnonymous
July 24, 2013
Thank you it helpedAnonymous
August 02, 2013
The comment has been removedAnonymous
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. helpAnonymous
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 foundAnonymous
September 05, 2013
I didn't know this, it became much handy for a laptop without bottom's tags. Thank you1Anonymous
October 17, 2013
Cool thanksAnonymous
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 thanksAnonymous
December 09, 2013
I want see serial number on windows 8, It's not working on windows 8 :PAnonymous
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 serialnumberAnonymous
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 computerAnonymous
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.htmlAnonymous
February 28, 2014
Cool.........Anonymous
March 01, 2014
It worked perfectly for meAnonymous
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 usAnonymous
March 07, 2014
This Command not workingAnonymous
March 12, 2014
ThanksAnonymous
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 laptopAnonymous
March 26, 2014
thanx very much.......dearAnonymous
March 30, 2014
L3LT603Anonymous
April 05, 2014
thanks for ur infoAnonymous
April 08, 2014
I got the message ' Serial Number to be filled by O.E.M.' But not serial numberAnonymous
April 14, 2014
This command only work in serverAnonymous
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
GreatAnonymous
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 loteAnonymous
May 25, 2014
Good to look serial no , ThanksAnonymous
May 25, 2014
Good to look serial no , ThanksAnonymous
May 25, 2014
Good to look serial no , ThanksAnonymous
May 27, 2014
great experience
thanksAnonymous
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 muchAnonymous
June 22, 2014
THANKSAnonymous
June 25, 2014
Bless!Anonymous
June 27, 2014
thank youAnonymous
July 02, 2014
Good :)Anonymous
July 10, 2014
Great tip thankyou...Anonymous
August 07, 2014
Thanks sirAnonymous
August 12, 2014
Hi,
Thank you! It helped :)Anonymous
August 14, 2014
Thanks Aviraj jee.Anonymous
August 19, 2014
ThanksAnonymous
August 25, 2014
Thanks. Nice command.Anonymous
August 30, 2014
this command superAnonymous
September 01, 2014
goodAnonymous
September 02, 2014
thank you niceAnonymous
September 02, 2014
Thank you. really helpful.Anonymous
September 04, 2014
Thank you very much Mr.Aviraj Ajgekar.MSFTAnonymous
September 10, 2014
My serial number which is on laptop outer body is different from your run commandAnonymous
September 11, 2014
Thank You Very Much....Anonymous
September 15, 2014
thanq... it's really helpfulAnonymous
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.htmlAnonymous
January 20, 2015
thanksAnonymous
January 24, 2015
Thanks much! It was really so easy!!!Anonymous
January 27, 2015
wmic bios get serialnumberAnonymous
February 05, 2015
Tanks broAnonymous
February 06, 2015
it's greatAnonymous
February 10, 2015
Mine says this instead of a serial number:
to be filled by O.E.MAnonymous
February 12, 2015
very nice :) thanxAnonymous
February 17, 2015
Tnx alot...keep it up pleaseAnonymous
February 25, 2015
ThanksAnonymous
March 01, 2015
tnx broAnonymous
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 numberAnonymous
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 theAnonymous
March 17, 2015
thank you very muchAnonymous
March 29, 2015
Does not work on ASUSAnonymous
April 03, 2015
worked great thanksAnonymous
May 28, 2015
that command is awesomeAnonymous
June 02, 2015
Thank youAnonymous
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 worksAnonymous
June 19, 2015
THANKSAnonymous
June 22, 2015
i want monitor serial number in command prompt ,,, pls post that commandAnonymous
June 22, 2015
thank you for thatAnonymous
June 23, 2015
tnxAnonymous
June 23, 2015
thanksAnonymous
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 & CPUAnonymous
August 03, 2015
awesome !!!!Anonymous
August 04, 2015
the command is not working in my hcl beanstalk systemAnonymous
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