<pre>>><i> More info about Win32_Tpm class
</i>>><i> here: <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa376484(v=vs.85">http://msdn.microsoft.com/en-us/library/windows/desktop/aa376484(v=vs.85</a>).aspx
</i>>><i>
</i>>><i> I have this Tpm chip in my machine which runs on Windows 7 and when I
</i>>><i> run tpm.msc from the windows run tab, I get all the info from GUI. I
</i>>><i> need to access the same information programatically through python. I
</i>>><i> saw few code samples on the internet which implement the same using VB
</i>>><i> or C#. What I essentially need is the python version of this link which
</i>>><i> shows how to access Win32_Tpm info using .Net.
</i>>><i>
</i>>><i> <a href="http://blogs.msdn.com/b/securitytools/archive/2009/07/29/wmi-programming-using-c-net.aspx">http://blogs.msdn.com/b/securitytools/archive/2009/07/29/wmi-programming-using-c-net.aspx</a>
</i>
>According to:
>
><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa376484%28v=vs.85%29.aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/aa376484%28v=vs.85%29.aspx</a>
>
>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</pre><pre>Thanks Tim, it worked. You put and end to my one and half day efforts :-).</pre><pre>Between ho can I reply to thread on this mailing list. I don't see any option for that.</pre><pre>Cheers,</pre>Prashant Padaganur<br>