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

Check Windows Updates Powershell

Current Version
1.0
Last Release Date
2013-02-26
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
License
GPL
Hits
49968
Files:
FileDescription
Check-Updates.zipZipped file of Check_Updates.ps1

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

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
1 of 1 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