取WSUS客戶端信息的代碼

select a.FullDomainName,a.IPAddress,a.LastReportedStatusTime,
b.Unknown,b.NotInstalled,b.Downloaded,b.Installed,b.Failed,b.InstalledPendingReboot,b.LastChangeTime
from tbComputerTarget a
inner join tbComputerSummaryForMicrosoftUpdates b on a.TargetID=b.TargetID

 

a.FullDomainName,計算機名

a.IPAddress,IP地址

a.LastReportedStatusTime,上次彙報時間
b.Unknown,未知補丁數

b.NotInstalled,沒有安裝補丁數

b.Downloaded,已經下載補丁數

b.Installed,已經安裝補丁數

b.Failed,安裝失敗的補丁數

b.InstalledPendingReboot,需要重啓

b.LastChangeTime 上次變化日期

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章