Jerry,
You are moving right along.
This script will let me know what is installed and what is not installed so that we can see if you have an update problem.
Just attach the two files mentioned at the first of the script to your next post.
thanks, karl
Script:
# ************************************************************
# Places InstalledUpdates.txt on your DESKTOP
# Places NotInstalledUpdates.TXT on your DESKTOP
#
# Hidden updates are ignored.
# ************************************************************
Try
{
$error.clear()
$file = "$env:userprofile\Desktop\InstalledUpdates.TXT"
If (test-path -path $file) {del $file}
$update = new-object -com Microsoft.update.Session
$searcher = $update.CreateUpdateSearcher()
write-host "`n`n Patience. I'm slowly, but steadily working on fetching the list of installed updates.`n`n"
$pending = $searcher.Search("IsInstalled=1")
foreach($entry in $pending.Updates) {
IF ($entry.IsHidden -ne $true) {
"Title: " + $entry.Title | Out-file -append $File
"Downloaded? " + $entry.IsDownloaded | Out-file -append $File
"Description: " + $entry.Description | Out-file -append $File
foreach($category in $entry.Categories) {
$d + "Category: " + $category.name | Out-file -append $File }
"" | Out-file -append $file } }
If ((Test-Path -path $file) -eq $false) {"No updates have been installed." | Out-file $file}
# Now to check the uninstalled updates that aren't hidden
$file = "$env:userprofile\Desktop\NotInstalledUpdates.TXT"
If (test-path -path $file) {del $file}
$update = new-object -com Microsoft.update.Session
$searcher = $update.CreateUpdateSearcher()
write-host "`n`n Patience. I'm slowly, but steadily working on fetching the list of uninstalled updates.`n`n"
$pending = $searcher.Search("IsInstalled=0")
foreach($entry in $pending.Updates) {
IF ($entry.IsHidden -ne $true) {
"Title: " + $entry.Title | Out-file -append $File
"Downloaded? " + $entry.IsDownloaded | Out-file -append $File
"Description: " + $entry.Description | Out-file -append $File
foreach($category in $entry.Categories) {
$d + "Category: " + $category.name | Out-file -append $File }
"" | Out-file -append $file } }
If (-not(Test-Path -path -$file)) {"There are no uninstalled updates which are unhidden." | Out-file $file}
}
Catch { "Unable to fetch update list from Microsoft site" }
Finally { "End of script"; EXIT }
EXIT
EXIT