您好,我在很大程度上试图避免基于用户的部署,而选择基于设备的部署,但是我正在尝试获取部署到基于用户的集合的应用程序的部署状态。
我使用下面的代码试图从基于用户的部署中获得结果,但没有成功。是否有人碰巧有一个基于用户的应用程序模型包的部署状态的SQL查询,或者有一个想法来让下面的一个工作?谢谢。
我使用下面的代码试图从基于用户的部署中获得结果,但没有成功。是否有人碰巧有一个基于用户的应用程序模型包的部署状态的SQL查询,或者有一个想法来让下面的一个工作?谢谢。
代码:
选择不同的vrs。Name0[计算机名称],vgos。Caption0 (OS)工具。User_Name0 [User Name], IIf([EnforcementState]=1001,'Installation Success', IIf([EnforcementState]>=1000 And [EnforcementState]<2000 And [EnforcementState]<>1001,'Installation Success', IIf([EnforcementState]>=2000 And [EnforcementState]<3000,'In Progress', IIf([EnforcementState]>=3000 And [EnforcementState]<4000,'Requirements Not满足',IIf([EnforcementState]>=4000 And [EnforcementState]<5000,'Unknown',IIf([EnforcementState]>=5000 And [EnforcementState]<6000,'Error','Unknown')))))) AS Status FROM dbo。v_R_User作为vrs的INNER JOIN。vAppDeploymentResultsPerClient INNER JOIN v_CIAssignment ON dbo.vAppDeploymentResultsPerClient.AssignmentID = v_CIAssignment. assignmentid) ON vrs。ResourceID =dbo.vAppDeploymentResultsPerClient. ResourceID INNER JOIN dbo.fn_ListApplicationCIs(1033) lac ON lac.ci_id=dbo.vAppDeploymentResultsPerClient. 1033CI_ID INNER JOIN dbo。v_GS_WORKSTATION_STATUS AS vgws ON vgws. resourceid =vrs。resourceid INNER JOIN v_FullCollectionMembership coll ON coll。ResourceID = vrs。ResourceID INNER JOIN dbo。v_GS_OPERATING_SYSTEM AS vgos ON vgos。ResourceID = vrs。ResourceID WHERE lac.DisplayName= 'Test App' and CollectionName = 'Test Users'