Update.Categories += category.Name + ', ' Update.Downloaded = windowsUpdate.IsDownloaded įoreach (string url in windowsUpdate.MoreInfoUrls)įoreach (dynamic category in windowsUpdate.Categories) Update.Description = windowsUpdate.Description PendingUpdate update = new PendingUpdate() Var searchResult = updateSearcher.Search('IsInstalled=0 And IsHidden=0') Ĭonsole.WriteLine('There are updates available for installation') įoreach (IUpdate windowsUpdate in searchResult.Updates) UpdateSearcher.Online = false //set to true if you want to search online Var updateSearcher = updateSession.CreateUpdateSearcher() I use this code to get pending windows updates and also most of the informations of the update: static List GetPendingUpdates()