Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
Plugins4387Themes and Skins11Add-ons734Documentation283Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Network Connections, Stats and Bandwidth Check Cisco switch error disable
1.7 (3)
54.2K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More
Home > Mike B
MB

Mike B

@shades4321

User Stats

Member Since: October 19, 2015

Favorites0

Views

Projects0

No Projects Found
Check Windows Updates using Powershell

Some additions to the script

The script does a good job, I'm not quite sure if this is the latest version of the script, but I noted a minor bug and some improvements that could be added. 1. Bug: $critialTitles = ""; should read: $criticalTitles = ""; The script works anyway despite the error. 2. Putting newlines into update string: $criticalTitles += $update.Title + " " Changed to: $criticalTitles += $update.Title + " `n" 3. These 3 lines are used twice in if statements and ideally would be in a function, just for neatness and brevity. $updateSession = new-object -com "Microsoft.Update.Session" $updates=$updateSession.CreateupdateSearcher().Search(("IsInstalled=0 and Type='Software'")).Updates Export-Clixml -InputObject $updates -Encoding UTF8 -Path $updateCacheFile Otherwise script works quite nicely.

Reviewed 10 years ago

No Favorites Found

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks