Windows HowTo's

Check for Windows Updates using PowerShell

This article shows a one lines (well, 4 lines) that output any updates that are waiting to be installed on your local computer.

Open PowerShell and run the following commands:

$UpdateSession = New-Object -ComObject Microsoft.Update.Session
$UpdateSearcher = $UpdateSession.CreateupdateSearcher()
$Updates = @($UpdateSearcher.Search("IsHidden=0 and IsInstalled=0").Updates)
$Updates | Select-Object Title

The output should be something similar to this (depending on the updates available):

Title
-----
Windows Malicious Software Removal Tool x64 - v5.89 (KB890830)

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.