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

Staff online

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,489
Latest member
BrigidaD91

Latest Threads

Top