Hi,
You could use the query below to generate the report.
SELECT SystemInfo.WORKSTATIONID,SystemInfo.WORKSTATIONNAME "Workstation",OsInfo.OSNAME "OS",AaaUser.FIRST_NAME "User",DepartmentDefinition.DEPTNAME "Department",SDOrganization.NAME "Site",RegionDefinition.REGIONNAME "Region" FROM SystemInfo LEFT JOIN OsInfo ON SystemInfo.WORKSTATIONID=OsInfo.WORKSTATIONID LEFT JOIN ResourceOwner ON SystemInfo.WORKSTATIONID=ResourceOwner.RESOURCEID LEFT JOIN SDUser ON ResourceOwner.USERID=SDUser.USERID LEFT JOIN AaaUser ON SDUser.USERID=AaaUser.USER_ID LEFT JOIN ResourceLocation ON SystemInfo.WORKSTATIONID=ResourceLocation.RESOURCEID LEFT JOIN SiteDefinition ON ResourceLocation.SITEID=SiteDefinition.SITEID LEFT JOIN DepartmentDefinition ON ResourceOwner.DEPTID=DepartmentDefinition.DEPTID LEFT JOIN RegionDefinition ON SiteDefinition.REGIONID=RegionDefinition.REGIONID LEFT JOIN SDOrganization ON SiteDefinition.SITEID=SDOrganization.ORG_ID LEFT JOIN Resources ON SystemInfo.WORKSTATIONID=Resources.RESOURCEID LEFT JOIN ResourceState ON Resources.RESOURCESTATEID=ResourceState.RESOURCESTATEID LEFT JOIN AgentInfo ON SystemInfo.WORKSTATIONID=AgentInfo.WORKSTATIONID WHERE (((SystemInfo.ISAGENTINSTALLED = 0) AND ((((OsInfo.OSNAME LIKE '%Microsoft%') OR (OsInfo.OSNAME LIKE '')) OR (OsInfo.OSNAME LIKE '-')) OR (OsInfo.OSNAME IS NULL))) AND ((ResourceState.STATEDESC) NOT IN (('Expired'),('Disposed'))))
ORDER BY 2
Regards,
Stephen
You could use the query below to generate the report.
SELECT SystemInfo.WORKSTATIONID,SystemInfo.WORKSTATIONNAME "Workstation",OsInfo.OSNAME "OS",AaaUser.FIRST_NAME "User",DepartmentDefinition.DEPTNAME "Department",SDOrganization.NAME "Site",RegionDefinition.REGIONNAME "Region" FROM SystemInfo LEFT JOIN OsInfo ON SystemInfo.WORKSTATIONID=OsInfo.WORKSTATIONID LEFT JOIN ResourceOwner ON SystemInfo.WORKSTATIONID=ResourceOwner.RESOURCEID LEFT JOIN SDUser ON ResourceOwner.USERID=SDUser.USERID LEFT JOIN AaaUser ON SDUser.USERID=AaaUser.USER_ID LEFT JOIN ResourceLocation ON SystemInfo.WORKSTATIONID=ResourceLocation.RESOURCEID LEFT JOIN SiteDefinition ON ResourceLocation.SITEID=SiteDefinition.SITEID LEFT JOIN DepartmentDefinition ON ResourceOwner.DEPTID=DepartmentDefinition.DEPTID LEFT JOIN RegionDefinition ON SiteDefinition.REGIONID=RegionDefinition.REGIONID LEFT JOIN SDOrganization ON SiteDefinition.SITEID=SDOrganization.ORG_ID LEFT JOIN Resources ON SystemInfo.WORKSTATIONID=Resources.RESOURCEID LEFT JOIN ResourceState ON Resources.RESOURCESTATEID=ResourceState.RESOURCESTATEID LEFT JOIN AgentInfo ON SystemInfo.WORKSTATIONID=AgentInfo.WORKSTATIONID WHERE (((SystemInfo.ISAGENTINSTALLED = 0) AND ((((OsInfo.OSNAME LIKE '%Microsoft%') OR (OsInfo.OSNAME LIKE '')) OR (OsInfo.OSNAME LIKE '-')) OR (OsInfo.OSNAME IS NULL))) AND ((ResourceState.STATEDESC) NOT IN (('Expired'),('Disposed'))))
ORDER BY 2
Regards,
Stephen