Myles Strous wrote:
> What's more, Tim Golden's wmi module (see
> http://tgolden.sc.sabren.com/python/wmi.html) makes getting at these
> numbers very easy:
>
> import wmi
> c = wmi.WMI ()
> for thingy in c.Win32_NetworkAdapter():
> print "Network Adaptor", thingy.MACAddress
> for thingy in c.Win32_Processor():
> print "Processor", thingy.ProcessorId
> for thingy in c.Win32_BIOS():
> print "BIOS", thingy.SerialNumber
> for thingy in c.Win32_BaseBoard():
> print "BaseBoard", thingy.SerialNumber
> for thingy in c.Win32_SystemEnclosure():
> print "System Enclosure", thingy.SerialNumber
> for thingy in c.Win32_DiskDrive():
> print "Disk Drive", thingy.PNPDeviceID
> for thingy in c.Win32_PhysicalMedia():
> print "Physical Media", thingy.SerialNumber
>
> Regards, Myles.
Ah... thing of beauty. One of these will probably make it into my
final solution.
Thanks millions!
Received on Sat Oct 15 04:07:57 2005