Home Directory Plugins Operating Systems Windows NRPE Check Windows Updates Powershell

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check Windows Updates Powershell

Current Version
1.0
Last Release Date
2013-02-26
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Owner
License
GPL
Hits
55672
Files:
FileDescription
Check-Updates.zipZipped file of Check_Updates.ps1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Gets the list of available Windows updates for a single Windows machine. Can be run through any remote client or process with the ability to execute Powershell scripts.
Gets the list of available Windows updates for a single Windows machine. Can be run through any remote client or process with the ability to execute Powershell scripts. Can be run with arguments for a grace period of days to report OK and not perform the full check. Does not return drivers or toolbar updates. Some updates may show as unknown if Microsoft has not issued a severity for them.

Get list of available updates from Microsoft Update Server, no matter how recent the last check was.

PS D:Powershell> .Check-Updates.ps1
35 Days since last update.
2 Critical Updates:
KB2792100
KB2797052
6 Important Updates:
KB2778344
KB2789642
KB2789645
KB2790113
KB2799494
KB954430
1 Moderate Updates:
KB2790655
4 Unknown Updates:
KB890830
KB915597
KB971033
KB973688

Get list of available updates from Microsoft Update Server, if last check was outside of grace period.

PS D:Powershell> .Check-Updates.ps1 50
35 Days since last update. Within grace period

PS D:Powershell> .Check-Updates.ps1 20
35 Days since last update.
2 Critical Updates:
KB2792100
KB2797052
6 Important Updates:
KB2778344
KB2789642
KB2789645
KB2790113
KB2799494
KB954430
1 Moderate Updates:
KB2790655
4 Unknown Updates:
KB890830
KB915597
KB971033
KB973688
Reviews (1)
byjuangranados, October 20, 2017
2 of 2 people found this review helpful
Hi Spenser!
Thanks for this excellent script.

Running Get-WmiObject -Class Win32_QuickFixEngineering could return empty values on InstalledOn.

I fixed this error and upload the script to GitHub, if anyone is interested:

https://github.com/juangranados/check_updates