Eure Hilfestellung hat mich letztendlich zu folgender Seite geführt:
Win32_ComputerSystemProduct (WMI)
Über diesen Code kann ich die von mir benötigte Information herausfinden u. noch ein paar Sachen mehr:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use strict;
use Win32::OLE('in');
use constant wbemFlagReturnImmediately => 0x10;
use constant wbemFlagForwardOnly => 0x20;
my @computers = ("DELL17");
foreach my $computer (@computers) {
print "\n";
print "==========================================\n";
print "Computer: $computer\n";
print "==========================================\n";
my $objWMIService = Win32::OLE->GetObject("winmgmts:\\\\$computer\\root\\CIMV2") or die "WMI connection failed.\n";
my $colItems = $objWMIService->ExecQuery("SELECT * FROM Win32_ComputerSystemProduct", "WQL",
wbemFlagReturnImmediately | wbemFlagForwardOnly);
foreach my $objItem (in $colItems) {
print "Caption: $objItem->{Caption}\n";
print "Description: $objItem->{Description}\n";
print "IdentifyingNumber: $objItem->{IdentifyingNumber}\n";
print "Name: $objItem->{Name}\n";
print "SKUNumber: $objItem->{SKUNumber}\n";
print "UUID: $objItem->{UUID}\n";
print "Vendor: $objItem->{Vendor}\n";
print "Version: $objItem->{Version}\n";
print "\n";
}
}
Gruss
toclim
Last edited: 2010-11-23 13:59:12 +0100 (CET)