WMI Help

3c273 nospam at nospam.com
Thu Jul 13 13:33:45 EDT 2006


"Michel Claveau" <mcPas.De.Spam at mclaveauPas.De.Spam.com> wrote in message
news:mn.6c687d672f8e52a4.34209 at mclaveauPas.De.Spam.com...
> Re!
>
> This script run on my XP :
>
>
> import win32com.client
> WMIS = win32com.client.GetObject(r"winmgmts:root\cimv2")
> objs = WMIS.ExecQuery("select * from Win32_PhysicalMedia")
> for obj in objs:
>     print obj.SerialNumber
>     print obj.Tag
>     print
>
Thank you for the input. Strange that this does not return the serial number
reported by other hardware utilities (SIW for one) and on both of my
machines this number ends with 202020202020202020202020??? Thanks again.
Louis





More information about the Python-list mailing list