Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

EPM - Windows Configuration - Dataview - Department Detail of Computer

Summary

This dataview will store the department detail of the last logged in user on each machine in the client environment.

Dependencies

Columns

ColumnDescription
Client NameClient Name
Location NameLocation Name
Computer NameComputer Name
Operating SystemOperating System of the agent
Last ContactLast Contact of the agent
DepartmentDepartment information of the last logged in user
Last Logged in UserLast logged in user on the agent
CPU UtilizationCPU utilization detail
Total MemoryTotal Memory of the agent
Available MemoryAvailable memory of the agent
Drive LetterDrive letter of the agent
Drive SizeDrive total size
Drive Free SpaceDrive free space on the agent
Drive ModelDrive file model information
Drive MissingInformation on whether the drive is missing in CW Automate
Drive Free PercentDrive free info in percentage format

SQL Representation

SELECT 
c.clientid,
c.locationid,
c.computerid,
cl.name AS `Client Name`,
l.name AS `Location Name`,
c.name AS `Computer Name`,
c.OS AS `Operating System`,
c.LastContact AS `Last Contact`,
c.LastUserName AS `Last Logged In User`,
CONCAT(c.cpuusage, '%') AS `CPU Utilization`,
CONCAT(
ROUND(c.totalmemory / 1024),
' GB'
) AS `Total Memory`,
CONCAT(
ROUND(c.memoryavail / 1024),
' GB'
) AS `Available Memory`,
d.DriveID AS `DriveID`,
d.Letter AS `Drive Letter`,
CONCAT(
ROUND(d.Size / 1024),
' GB'
) AS `Drive Size`,
CONCAT(
ROUND(d.Free / 1024),
' GB'
) AS `Drive Free Space`,
d.FileSystem AS `Drive FileSystem`,
d.Model AS `Drive Model`,
d.Missing AS `Drive Missing`,
CONCAT(
ROUND(
(
(d.Free / d.Size) * 100
),
0
),
'%'
) AS `Drive Free Percent`,
CASE
WHEN ve.`Computer Department` IS NULL THEN 'Not Detected'
WHEN ve.`Computer Department` = '' THEN 'Not Detected'
ELSE ve.`Computer Department`
END AS `Department`
FROM
computers c
LEFT JOIN clients cl ON cl.clientid = c.clientid
LEFT JOIN locations l ON l.locationid = c.locationid
LEFT JOIN drives d ON d.computerid = c.computerid
LEFT JOIN `v_extradatacomputers` ve ON ve.computerid = c.computerid
WHERE
d.FileSystem NOT IN (
'CDFS', 'UKNFS', 'DVDFS', 'FAT', 'FAT32',
'NetFS'
)
AND d.missing = '0'