Controlling who can run an executable

Cigar chrisgarland67 at hotmail.com
Tue Oct 4 14:06:34 EDT 2005


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!




More information about the Python-list mailing list