private Dictionary <string, string> GetComputerTargetStatus(IUpdateServer wsus, string id) { Dictionary <string, string> retDict = new Dictionary <string, string>(); IComputerTarget target = wsus.GetComputerTarget(id); IUpdateSummary summary = target.GetUpdateInstallationSummary(); retDict.Add("InstalledCount", summary.InstalledCount.ToString()); retDict.Add("DownloadedCount", summary.DownloadedCount.ToString()); retDict.Add("FailedCount", summary.FailedCount.ToString()); retDict.Add("InstalledPendingRebootCount", summary.InstalledPendingRebootCount.ToString()); retDict.Add("IsSummedAcrossAllUpdates", summary.IsSummedAcrossAllUpdates.ToString()); retDict.Add("LastUpdated", summary.LastUpdated.ToString()); retDict.Add("NotApplicableCount", summary.NotApplicableCount.ToString()); retDict.Add("UnknownCount", summary.UnknownCount.ToString()); retDict.Add("NotInstalledCount", summary.NotInstalledCount.ToString()); return(retDict); }