endpoint protection 代理的状态存储在 SMS_G_System_EPDeploymentState 视图中,而该查询的关键在于对 DeploymentState 字段进行筛选。下面的查询会返回任何未通过 Configuration Manager 完全管理的机器。select SMS_R_System.Name, SMS_G_System_EPDeploymentState.DeploymentState, SMS_R_System.Active, SMS_R_System.ADSiteName, SMS_R_System.IPSubnets, SMS_R_System.IPAddresses, SMS_R_System.SystemOUName from SMS_R_System inner join SMS_G_System_EPDeploymentState on SMS_G_System_EPDeploymentState.ResourceID = SMS_R_System.ResourceId where SMS_G_System_EPDeploymentState.DeploymentState != 3你需要理解的是 DeploymentState 列的不同取值,因为值 3 是唯一真正成功的状态。各值含义如下:1 - 未管理2 - 待安装3 - 已管理(成功)4 - 失败5 - 等待重启祝你报表顺利!