title: How to use Win32_Tpm module in python
body: <p>I have installed WMI for python and pywin32 extensions to be able to use win32 apis from my python scripts. While I can get all the info from other clasees like Win32_Battery, Win32_Processor I am having tough time with Win32_Tpm class.</p>
  
  <p>I want to use Win32_Tpm module in python to play around with various tpm features, but all my references to win32_tpm are returning null.</p>
  
  <p>Has anybody been able to use the same without any problems. Any help would be appreciated very much.</p>
  
  <p>My code is simple:</p>
  
  <pre><code>import wmi,sys,os
  
  c = wmi.WMI()
  
  for tpm in c.Win32_Tpm():
      pass
  
  if tpm.IsActivated():
      print 'Version %s' %(tpm.SpecVersion)
      print 'Physical presence %s' %(tpm.PhysicalPresenceVersionInfo)
  </code></pre>