Query report Installed On field

Query report "Installed On" field

El siguiente query muestra el listado de aplicaciones instaladas por dispositivo, al igual que la fecha de instalación de dicha aplicación:
Campos: Device Name | Software Name | Manufacturer | Version | Last_logged_user | User | Installed On.
Gestor de base de datos: MSSQL.
El query es aplicable para ServiceDesk Plus como también para Asset Explorer.

SELECT SystemInfo.WORKSTATIONNAME "Workstation",
(SoftwareList.SOFTWARENAME) "Software_Name",
MAX(swmfg.NAME) "Manufacturer",
MAX(SoftwareInfo.FILEVERSION) "Version",
max(SystemInfo.LOGGEDUSER) "Last_Logged_User",
MAX(aaaUser.FIRST_NAME) "User",
 longtodate(max(SoftwareInfo.FILECREATEDTIME)) "Installed On"  FROM SoftwareInfo
LEFT JOIN SoftwareList ON SoftwareInfo.SOFTWAREID=SoftwareList.SOFTWAREID
LEFT JOIN SoftwareType ON SoftwareList.SOFTWARETYPEID=SoftwareType.SOFTWARETYPEID
LEFT JOIN Systeminfo ON SoftwareInfo.WORKSTATIONID=SystemInfo.WORKSTATIONID
LEFT JOIN SoftwareManufacturer swmfg ON SoftwareList.SWMANUFACTURERID=swmfg.SWMANUFACTURERID
LEFT JOIN Resources resource ON SystemInfo.WORKSTATIONID=resource.RESOURCEID
LEFT JOIN ResourceState state ON resource.RESOURCESTATEID=state.RESOURCESTATEID
LEFT JOIN ResourceOwner rOwner ON resource.RESOURCEID=rOwner.RESOURCEID
LEFT JOIN ResourceAssociation rToAsset ON rOwner.RESOURCEOWNERID=rToAsset.RESOURCEOWNERID
LEFT JOIN SDUser sdUser ON rOwner.USERID=sdUser.USERID
LEFT JOIN AaaUser aaaUser ON sdUser.USERID=aaaUser.USER_ID
GROUP BY SystemInfo.WORKSTATIONNAME,SoftwareList.SOFTWARENAME ORDER BY 1

Este query puede ser ejecutado desde la consola ServiceDesk Plus / Asset Explorer, en la sección Reports > New Query Report.

¿Tiene consultas o necesita asesoría? ¡Contáctenos!

Genotech
Administración de Servicios de TI