>>* More info about Win32_Tpm class*>>* here: 
>>http://msdn.microsoft.com/en-us/library/windows/desktop/aa376484(v=vs.85).aspx*>>*
>> *>>* I have this Tpm chip in my machine which runs on Windows 7 and when 
>>I*>>* run tpm.msc from the windows run tab, I get all the info from GUI. 
>>I*>>* need to access the same information programatically through python. 
>>I*>>* saw few code samples on the internet which implement the same using 
>>VB*>>* or C#. What I essentially need is the python version of this link 
>>which*>>* shows how to access Win32_Tpm info using .Net.*>>* *>>* 
>>http://blogs.msdn.com/b/securitytools/archive/2009/07/29/wmi-programming-using-c-net.aspx*
>According to:
>
>http://msdn.microsoft.com/en-us/library/windows/desktop/aa376484%28v=vs.85%29.aspx
>
>the Win32_Tpm class is in its own namespace. So try this:
>
><code>
>import wmi
>
>c = wmi.WMI(namespace="root/cimv2/security/microsofttpm")
>for whatever in c.Win32_Tpm():
> # do whatever
>
></code>
>
>TJG

Thanks Tim, it worked. You put and end to my one and half day efforts :-).

Between ho can I reply to thread on this mailing list. I don't see any
option for that.

Cheers,

Prashant Padaganur
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to