2017-01-09 6 views
0

imは現在、ADRルールを使用してSCCMを通じて自分のサーバにパッチを適用しています。私はサーバーに更新プログラムをインストールする際に順序がないことに気づいた。メンテナンス期間中にランダムなサーバーにパッチが適用されます。現在どのサーバがsccmでパッチされています

私は情報を読んでダッシュボードに入れることができるように、どのサーバーにパッチを当てるのかを知りたいと思っています。 ondutyの人は何が起こっているのか正確に知ることができます。 SCCMはアクセスを制御しているので、情報を表示するための自動化された方法を見つける必要があります。

私は2つの質問

  1. を持っているが、私は

    サーバー名を必要とするneed.I情報を取得するために読むことができるログがあり、 パッチは、時間、 パッチ終了時間を開始し、再起動情報(可能な場合)

  2. 私が情報を読んで私たちのモニーに表示する手間のかからない方法トル?

誰かが助けてくれることを願っています。

答えて

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

関連する問題