Configuration Manager 中 Endpoint Protection 的查詢範例

 

適用於: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

下列查詢範例會示範如何將最常用的 Endpoint Protection 加入其他檢視。

加入 Endpoint Protection 和集合檢視

下列查詢使用 v_GS_EPDeploymentState 檢視列出所有電腦上的 Endpoint Protection 用戶端部署狀態。 對於每部電腦,它也會加入用戶端名稱和站台碼,方法是依據 ResourceID 加入 v_ClientCollectionMembers 檢視。

SELECT   v_GS_EPDeploymentState_1.ResourceID, v_ClientCollectionMembers.Name, v_ClientCollectionMembers.SiteCode, 
                 v_GS_EPDeploymentState_1.LastMessageTime, v_GS_EPDeploymentState_1.DeploymentState, v_GS_EPDeploymentState_1.Error, 
                 v_GS_EPDeploymentState_1.ErrorCode
FROM    v_GS_EPDeploymentState AS v_GS_EPDeploymentState_1 INNER JOIN
        v_ClientCollectionMembers ON v_GS_EPDeploymentState_1.ResourceID = v_ClientCollectionMembers.ResourceID