Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Windows Updates Powershell
1.0
2013-02-26
- Nagios 2.x
- Nagios 3.x
- Nagios XI
GPL
55765
File | Description |
---|---|
Check-Updates.zip | Zipped file of Check_Updates.ps1 |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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
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)
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
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