retrieving Dell Service Tags using Perl

F

Fu Dong

I was wondering if there was an easy way to retrieve a Dell service tag
using Perl. I know it can be done using VBscript using WMI (windows
management instrumentation) and here's the code for VBscript just in
case someone was interested.

set WMI = GetObject("WinMgmts:")


'Show description of all services
set objs = WMI.InstancesOf("Win32_SystemEnclosure")
for each obj in objs


msgbox "Service Tag: " + obj.SerialNumber
 
J

John Bokma

Fu Dong said:
I was wondering if there was an easy way to retrieve a Dell service tag
using Perl. I know it can be done using VBscript using WMI (windows
management instrumentation) and here's the code for VBscript just in
case someone was interested.

set WMI = GetObject("WinMgmts:")


'Show description of all services
set objs = WMI.InstancesOf("Win32_SystemEnclosure")
for each obj in objs


msgbox "Service Tag: " + obj.SerialNumber

http://search.cpan.org/~wyant/Win32-Process-Info-1.005/Info/WMI.pm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top