2017-01-09 28 views
0

我目前使用ADR規則通過SCCM修補服務器。並且我注意到在安裝更新到服務器時沒有訂單。隨機服務器在維護窗口期間得到修補。sccm現在正在修補什麼服務器

我想知道一種方式來獲得該服務器現在得到修補,這樣我可以讀取信息,並把它變成一個儀表板。那麼值班人員可以確切地知道發生了什麼。 SCCM控制訪問,所以我需要找到一種自動顯示信息的方式。

我有兩個問題

  1. 是有一個日誌我可以閱讀來獲取信息我need.I需要

    服務器名稱, 補丁開始時間, 補丁結束時間,重新啓動信息(如果可能的話)

  2. 無憂無慮的方式讓我讀取信息並將其顯示在我們的moni上TOR?

希望有人能夠提供幫助。

回答

0

根據我的經驗,你可以得到補丁開始時間,結束補丁的時間,從上該Windowsupdate.log。 How to read the Windowsupdate.log file

同時,使用下面的查詢來獲取綜合報告爲所有部署

Select Deploymentname, Available, Deadline, 

cast(cast(((cast([Compliant] as float)/(ISNULL([Compliant], 0) + ISNULL([Enforcement state unknown], 0) + ISNULL([Successfully installed update(s)], 0) + ISNULL([Failed to install update(s)], 0) + ISNULL([Installing update(s)], 0) + ISNULL([Waiting for another installation to complete], 0) + ISNULL([Pending system restart], 0) + ISNULL([Downloading update(s)], 0)))*100) as Numeric(10,2)) as varchar(256)) + '%' AS '%Compliant', 

    [Compliant], 

    [Enforcement state unknown], 

    [Successfully installed update(s)], 

    [Failed to install update(s)], 

    [Installing update(s)], 

    [Waiting for another installation to complete], 

    [Pending system restart], 

    [Downloading update(s)] 

From 

(select 

a.AssignmentName as DeploymentName, 

a.StartTime as Available, 

a.EnforcementDeadline as Deadline, 

sn.StateName as LastEnforcementState, 

count(*) as NumberOfComputers 

from v_CIAssignment a 

join v_AssignmentState_Combined assc 

on a.AssignmentID=assc.AssignmentID 

join v_StateNames sn 

on assc.StateType = sn.TopicType and sn.StateID=isnull(assc.StateID,0) 

group by a.AssignmentName, a.StartTime, a.EnforcementDeadline, 

     sn.StateName) as PivotData 

PIVOT 

( 

SUM (NumberOfComputers) 

FOR LastEnforcementState IN 

([Compliant], 

    [Enforcement state unknown], 

    [Successfully installed update(s)], 

    [Failed to install update(s)], 

    [Installing update(s)], 

    [Waiting for another installation to complete], 

    [Pending system restart], 

    [Downloading update(s)]) 

) AS pvt 

Software Updates Views in Configuration Manager

+0

只是檢查,看是否提供的信息是有益的。如果您需要進一步的幫助,請告訴我們。 –

+0

我真的很抱歉花了這麼多時間來回答。但我遇到了一個問題。我如何修改此顯示服務器明智的失敗/已安裝/可用的更新? 每個服務器的屬性基本相同。這是每部署 非常感謝幫助:) – Sp3LLingzz

相關問題