Dell Service Tags

| 4 Comments | 1 TrackBack
In order to put something useful on here, and in order to save me having to Google this again, the following is how to get the Dell service tags on Linux and Windows: Linux:
dmidecode | grep Serial\ Number | head -n1
Windows: Open Notepad or your text editor of choice and put the following in:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial Number: " & objSMBIOS.SerialNumber
Save as get-tag.vbs and double-click to run. This will only work on Windows Server as it requires WMI.

1 TrackBack

from Not Another One! - DMIDecode alternatives for Windows on February 26, 2007 12:59 PM

TITLE: URL: IP: BLOG NAME: Not Another One! - DMIDecode alternatives for Windows DATE: 02/26/2007 12:59:49 PM Read More


Thanks! I was looking for how to do this on Linux, and this worked.

For the record, on Windows XP and higher, you can run 'wmic csproduct get vendor,name,identifyingnumber' at the command line. Tested on WinXP SP2 and Windows Server 2003, but it should work on XP pre-SP2 and on Vista as well.

You can actually just run 'wmic csproduct' but it returns more information that is largely not useful.

Even nicer, you can get info for remote systems with 'wmic /node:computername csproduct'

Thanks Dan,

A hell of a lot neater than my hack :)

Hey, not that it matters too much, but a slightly better way (for linux) would be:

dmidecode | grep -m1 Serial\ Number

If you're only wanting the first match.

It saves a few characters of typing, it gets my vote :)

About this Entry

This page contains a single entry by Niall Donegan published on February 8, 2007 10:21 AM.

RAID Explanation was the previous entry in this blog.

Pictures Of Walls! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.


OpenID accepted here Learn more about OpenID
Creative Commons License
This blog is licensed under a Creative Commons License.
Powered by Movable Type 5.02