Home | Download | Demo | Feature list | Premium users | Support | Knowledgebase
How to fix WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
The network path was not found - The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
How to configure Windows Vista clients.
How to configure the windows firewall using group policies.
   
Welcome Guest Search | Active Topics | Members | Log In | Register

Check to see if software is installed... Options
TelhioCU
Posted: Wednesday, October 08, 2008 5:18:48 PM

Rank: Premium user
Groups: Member , Premium Users

Joined: 10/6/2008
Posts: 16
Location: Columbus, Ohio
I am trying to simply add a report to show the computers that do NOT have Trend Micro OfficeScan installed.

I have added the file to the scan options through the gui, and now am trying to add the report so it will show up in the web console.

I have been looking for an example of a report like this and have not found one.

Thanks,

TCU
Lansweeper
Posted: Wednesday, October 08, 2008 8:41:12 PM

Rank: Administration
Groups: Administration

Joined: 2/10/2005
Posts: 1,560
Location: Hamme Belgium
This thread should help you : http://forum.lansweeper.com/yaf_postst611_Adobe-Reader-9-Help.aspx
First create the report using the report builder, afterwards add it to the interface using lsmanage
TelhioCU
Posted: Friday, October 10, 2008 2:40:37 PM

Rank: Premium user
Groups: Member , Premium Users

Joined: 10/6/2008
Posts: 16
Location: Columbus, Ohio
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
fleet
Posted: Wednesday, November 12, 2008 6:44:33 AM


Rank: Premium user
Groups: Member , Premium Users

Joined: 11/4/2008
Posts: 6
Location: Perth Western Australia
Hi,
Can you please help me import this script and tell me how and where can i see it?

thank you ,

DadiO
Perth Australia





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
Lansweeper
Posted: Wednesday, November 12, 2008 6:05:55 PM

Rank: Administration
Groups: Administration

Joined: 2/10/2005
Posts: 1,560
Location: Hamme Belgium
Since you are a premium user it would be easier to just copy/paste the sql code in the query builder

Code:
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


You also need to start the GUI management console and add "'%programfiles%\Trend Micro\OfficeScan Client\PccNTMon.exe" to the list of scanned files.
quintinh
Posted: Wednesday, December 31, 2008 2:55:21 PM

Rank: Premium user
Groups: Member , Premium Users

Joined: 12/18/2008
Posts: 2
Location: Minnesota
I don't know if anybody ever successfully finished this but there is a key ingredient missing from the above examples. If you want to know if it is installed or not, there is a field in tblFileVersions called Found that is of type bit. Type bit means there is a 0 for false and 1 for true. The statement below will give you all the comptuers where that file was not found and, therefore, is not installed.

Code:

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


You have to add the CREATE, GO and INSERT into tsysreports table for this to work in the gui console. There are plenty of examples in the other posts to guide you through that.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.

   
Quick links: Download - Premium users - Support 
Copyright 2004 - 2008 © Geert Moernaut - Hemoco bvba - All rights reserved