‎10-08-2008 07:18 PM
‎12-31-2008 03:55 PM
SELECT TOP (100) PERCENT dbo.tblComputers.Computername AS Computer, dbo.tblFileVersions.FileVersion, dbo.tblFileVersions.FileDescription, dbo.tblFileVersions.Filesize, dbo.tblFileVersions.Lastchanged
FROM dbo.tblComputers LEFT OUTER JOIN dbo.tblFileVersions ON dbo.tblComputers.Computername = dbo.tblFileVersions.Computername
WHERE (dbo.tblFileVersions.FilePathfull LIKE '%PccNTMon.exe') AND (dbo.tblFileVersions.Found = 0)
ORDER BY Computer
‎11-12-2008 07:05 PM
SELECT TOP 100 PERCENT dbo.tblComputers.Computername AS Computer, dbo.tblOperatingsystem.Description, dbo.tblFileVersions.FileVersion, dbo.tblFileVersions.FileDescription, dbo.tblFileVersions.Filesize, dbo.tblFileVersions.Lastchanged
FROM dbo.tblComputers INNER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername LEFT OUTER JOIN
dbo.tblFileVersions ON dbo.tblComputers.Computername = dbo.tblFileVersions.Computername
WHERE (dbo.tblFileVersions.FilePathfull LIKE '%programfiles%\Trend Micro\OfficeScan Client\PccNTMon.exe')
ORDER BY dbo.tblComputers.Computername
‎10-10-2008 04:40 PM
‎11-12-2008 07:44 AM
TelhioCU wrote:
I successfully created the scanned file, and the report.
However, in the web console the report shows up but I do not believe it is giving accurate results. I am pretty sure that there are a couple of machines that do not have Trend Micro Officescan on them.
Can you review this and see if I am accurate?
' This is a sample report that checks all computers if they have the latest version of OfficeScan Client
' The file that we need to check : %programfiles%\Trend Micro\OfficeScan Client\PccNTMon.exe
' Create the query to check for the installed application
' version is not relevant
CREATE VIEW dbo.web30repnotinstalledofficescan
AS
SELECT TOP 100 PERCENT dbo.tblComputers.Computername AS Computer, dbo.tblOperatingsystem.Description, dbo.tblFileVersions.FileVersion, dbo.tblFileVersions.FileDescription, dbo.tblFileVersions.Filesize, dbo.tblFileVersions.Lastchanged
FROM dbo.tblComputers INNER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername LEFT OUTER JOIN
dbo.tblFileVersions ON dbo.tblComputers.Computername = dbo.tblFileVersions.Computername
WHERE (dbo.tblFileVersions.FilePathfull LIKE '%programfiles%\Trend Micro\OfficeScan Client\PccNTMon.exe')
ORDER BY dbo.tblComputers.Computername
GO
'Add the view to the reports table
INSERT INTO [tsysreports] ([Reportquery],[Reporttitle]) VALUES ('web30repnotinstalledofficescan','Not running OfficeScan')
GO
Thanks,
TCU
‎10-08-2008 10:41 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now