If you wish to get the model number for a
Dell system from a command line
interface (CLI), i.e., a command prompt, you can use the wmic command
wmic csproduct get vendor, name
as shown below:
C:\Users>wmic csproduct get vendor,name Name Vendor Inspiron 570 Dell Inc.
If you just wanted the model, you could use wmic csproduct get name
.
Besides "vendor", you can also use "manufacturer" in a BIOS query with WMIC to see the system was manufactured by Dell.
C:\Users>wmic bios get manufacturer Manufacturer Dell Inc. C:\Users>
For some Dell models, e.g., an Inspiron 620s, you can also get the service
tag, which is the equivalent of a serial number for Dell systems, by issuing
the command wmic bios get serialnumber
.
C:\>wmic csproduct get vendor,name Name Vendor Inspiron 620s Dell Inc. C:\>wmic bios get manufacturer, name, serialnumber Manufacturer Name SerialNumber Dell Inc. BIOS Date: 11/21/11 10:52:35 Ver: 04.06.04 FP1QVR1
You will see in the above example that if you use "name" as a parameter
for the wmic bios get
command that, unlike with the wmic
csproduct get name
command, you see information for the BIOS, in this
case the BIOS date and version number, rather than the model number for
the system. But the serial number corresponds to the Dell service tag.
For some systems, you will see the manufacturer of the BIOS, such as
Award Software
listed when you issue a wmic bios get manufacturer command
. E.g.,
the example below is for a custom-built system rather than one from Dell.
For this system, there is no manufacturer assigning a serial number to
the system. I can get the BIOS version by appending version
to the wmic query.
C:\Users\Lee>wmic bios get manufacturer, version, serialnumber Manufacturer SerialNumber Version Award Software International, Inc. GBT - 42302e31
For the Dell Inspiron 620s, I can use either the wmic bios get
serialnumber
or the wmic csproduct get identifyingnumber
to get the Dell service tag.
C:\>wmic csproduct get vendor,name Name Vendor Inspiron 620s Dell Inc. C:\>wmic bios get manufacturer, name, serialnumber Manufacturer Name SerialNumber Dell Inc. BIOS Date: 11/21/11 10:52:35 Ver: 04.06.04 FP1QVR1 C:\>wmic csproduct get vendor,name,identifyingnumber IdentifyingNumber Name Vendor FP1QVR1 Inspiron 620s Dell Inc. C:\>
I found the commands also show the service tag on a Dell Latitude E6530 laptop, however, you won't be able to use those for all Dell computer models to get the service tag. E.g., a Dell Inspiron 570:
C:\Users>wmic csproduct get vendor,name,identifyingnumber IdentifyingNumber Name Vendor Inspiron 570 Dell Inc. C:\Users>wmic bios get manufacturer, name, serialnumber Manufacturer Name SerialNumber Dell Inc. BIOS Date: 09/02/10 15:02:26 Ver: 08.00.15 C:\Users>
You can use the same commands with computers from other manufacturers. E.g., the output from the same commands run on a Gateway system running Windows Small Business Server (SBS) 2003 is shown below (the Dell systems in the above examples were running Windows 7 Professional):
C:\Documents and Settings>wmic bios get manufacturer,name,serialnumber Manufacturer Name SerialNumber American Megatrends Inc. AMIBIOS (C)2001 American Megatrends Inc., Version 07.00.00 0032880113 C:\Documents and Settings>wmic csproduct get vendor,name,identifyingnumber IdentifyingNumber Name Vendor 0032880113 920 Series Gateway
And the output from an HP system running Windows Server 2012:
C:\Users\Admin>wmic bios get manufacturer, name, serialnumber Manufacturer Name SerialNumber AMI Ver: RED_807.ROM vRED8.07 MXU24202NE C:\Users\Admin>wmic csproduct get vendor,name,identifyingnumber IdentifyingNumber Name Vendor MXU24202NE p2-1310 Hewlett-Packard C:\Users\Admin>
References:
-
View DELL Service Tag and Express Service Code From Linux and Windows
By: Ramesh Natarajan
Date: October 24, 2008
The Geek Stuff