Returns information about the computer baseboard.

This script was tested using Perl 5.8.0.804 for Microsoft Windows, available from ActiveState.

Perl
Edit|Remove
use Win32::OLE('in');
use constant wbemFlagReturnImmediately => 0x10;
use constant wbemFlagForwardOnly => 0x20;

$computer = ".";
$objWMIService = Win32::OLE->GetObject
    ("winmgmts:\\\\$computer\\root\\CIMV2") or die "WMI connection failed.\n";
$colItems = $objWMIService->ExecQuery
    ("SELECT * FROM Win32_BaseBoard","WQL",wbemFlagReturnImmediately | wbemFlagForwardOnly);

foreach my $objItem (in $colItems)
{
      print "Caption: $objItem->{Caption}\n";
      print "Config Options: " . join(",", (in $objItem->{ConfigOptions})) . "\n";
      print "Creation Class Name: $objItem->{CreationClassName}\n";
      print "Depth: $objItem->{Depth}\n";
      print "Description: $objItem->{Description}\n";
      print "Height: $objItem->{Height}\n";
      print "Hosting Board: $objItem->{HostingBoard}\n";
      print "Hot Swappable: $objItem->{HotSwappable}\n";
      print "Install Date: $objItem->{InstallDate}\n";
      print "Manufacturer: $objItem->{Manufacturer}\n";
      print "Model: $objItem->{Model}\n";
      print "Name: $objItem->{Name}\n";
      print "Other Identifying Info: $objItem->{OtherIdentifyingInfo}\n";
      print "Part Number: $objItem->{PartNumber}\n";
      print "Powered On: $objItem->{PoweredOn}\n";
      print "Product: $objItem->{Product}\n";
      print "Removable: $objItem->{Removable}\n";
      print "Replaceable: $objItem->{Replaceable}\n";
      print "Requirements Description: $objItem->{RequirementsDescription}\n";
      print "Requires Daughter Board: $objItem->{RequiresDaughterBoard}\n";
      print "Serial Number: $objItem->{SerialNumber}\n";
      print "SKU: $objItem->{SKU}\n";
      print "Slot Layout: $objItem->{SlotLayout}\n";
      print "Special Requirements: $objItem->{SpecialRequirements}\n";
      print "Status: $objItem->{Status}\n";
      print "Tag: $objItem->{Tag}\n";
      print "Version: $objItem->{Version}\n";
      print "Weight: $objItem->{Weight}\n";
      print "Width: $objItem->{Width}\n";
      print "\n";
}