Windows Patches needed


Recommended Posts

  • LogicMonitor Staff

N7R7YZ

See details on my blog .  A DataSource that shows which Windows patches are needed. The patch names, and KB numbers show as instances and are grouped by Microsoft's 'classifications'. A special instance named 'summary' shows how many days since the last patch was installed and how many patches are needed.

image.png.cc8d13bb7a59ff7a5d94cfba40e70854.png

Link to post
Share on other sites
  • 2 weeks later...

Hi @Mike Suding

I have found that sometimes it is possible to get a false $DayDiff when going by the most recently installed update. I found an example on a server where an older roll-up was installed recently and the returned date was way in the past. So, I'm using the following method, which so far has been returning the expected results:
 

    $LAST_UPDATE_KEY_PATH = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Detect"

    If (Test-Path -Path $LAST_UPDATE_KEY_PATH)
    {
      $lastSuccessTime = [datetime](Get-ItemProperty -Path $LAST_UPDATE_KEY_PATH -name "LastSuccessTime").LastSuccessTime
          
      $DayDiff = $(New-TimeSpan -start $lastSuccessTime).Days
    }
    else
    {
      $DayDiff = -1
    }
    
Edited by Mosh
Link to post
Share on other sites
  • 1 year later...
  • 7 months later...

Tried this in my portal today and it fails during import with the error below.  

Failed to parse LogicModule from XML: org.xml.sax.SAXParseException; lineNumber: 68; columnNumber: 90; Attribute name "data-pjax-transient" associated with an element type "meta" must be followed by the ' = ' character.
Link to post
Share on other sites
14 minutes ago, Shack said:

Tried this in my portal today and it fails during import with the error below.  


Failed to parse LogicModule from XML: org.xml.sax.SAXParseException; lineNumber: 68; columnNumber: 90; Attribute name "data-pjax-transient" associated with an element type "meta" must be followed by the ' = ' character.

Appears to of imported even with the error above.  Disregard.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.