<pre>&gt;&gt;<i> More info about Win32_Tpm class
</i>&gt;&gt;<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>&gt;&gt;<i> 
</i>&gt;&gt;<i> I have this Tpm chip in my machine which runs on Windows 7 and when I
</i>&gt;&gt;<i> run tpm.msc from the windows run tab, I get all the info from GUI. I
</i>&gt;&gt;<i> need to access the same information programatically through python. I
</i>&gt;&gt;<i> saw few code samples on the internet which implement the same using VB
</i>&gt;&gt;<i> or C#. What I essentially need is the python version of this link which
</i>&gt;&gt;<i> shows how to access Win32_Tpm info using .Net.
</i>&gt;&gt;<i> 
</i>&gt;&gt;<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>
&gt;According to:
&gt;
&gt;<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>
&gt;
&gt;the Win32_Tpm class is in its own namespace. So try this:
&gt;
&gt;&lt;code&gt;
&gt;import wmi
&gt;
&gt;c = wmi.WMI(namespace=&quot;root/cimv2/security/microsofttpm&quot;)
&gt;for whatever in c.Win32_Tpm():
&gt; # do whatever
&gt;
&gt;&lt;/code&gt;
&gt;
&gt;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&#39;t see any option for that.</pre><pre>Cheers,</pre>Prashant Padaganur<br>