title: How to know if windows has pending security updates from cmd or python?
body: <p>I need to know if windows has pending security updates from cmd or python.</p>
  
  <p>I found an form to do this from cmd:</p>
  
  <p>-First: I execute <code>&gt;&gt; C:\Windows\system32\wuauclt.exe /detectnow</code></p>
  
  <p>-After that: <code>&gt;&gt; Read the %systemroot%\WindowsUpdate.log</code> file information.</p>
  
  <p>But I think must be another easy form to do this.</p>
  
  <p>I found to that for C# exist an library named <a href="https://stackoverflow.com/questions/12911218/how-to-know-if-windows-update-is-waitng-for-installation">WUApiLib</a>, this exist for python or something by style?</p>