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

Adobe Reader 9 Help Options
jreimer
Posted: Monday, July 28, 2008 2:40:26 PM
Rank: Freeware Member
Groups: Member

Joined: 5/6/2008
Posts: 17
Location: Ellenville, NY
Trying to get this to show me which computers don't have Adobe Reader 9 but every time i look doesn't show any computers and i know a bunch that don't have it. What is wrong with this SQL.

' This is a sample report that checks all computers if they have the latest version of SAV
' The file that we need to check : %programfiles%\Adobe\Reader 9.0\AcroRd32.exe

' Add the file that we need to scan to the tsysfiles table
' you can do the same from the GUI interface

' Create the query to check for the latest version
' the latest version of our software is 9.0.0.322

CREATE VIEW dbo.web30repAdobe
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 '%AcroRd32.exe%') AND (NOT (dbo.tblFileVersions.FileVersion LIKE '9.0%'))
ORDER BY dbo.tblComputers.Computername

GO

INSERT INTO dbo.TsysFiles
(Searchfile, Enabled)
VALUES ('%programfiles%\Adobe\Reader 9.0\AcroRd32.exe', 1)

'Add the view to the reports table

INSERT INTO [tsysreports] ([Reportquery],[Reporttitle]) VALUES ('web30repAdobe','Adobe Reader Update')

GO
Lansweeper
Posted: Monday, July 28, 2008 4:02:38 PM

Rank: Administration
Groups: Administration

Joined: 2/10/2005
Posts: 1,451
Location: Hamme Belgium
You need to change the view into something like this (not checked for syntax errors)
Code:
SELECT TOP 100 PERCENT dbo.tblComputers.Computername AS Computer FROM dbo.tblComputers where computername not in (select distinct dbo.computername from dbo.tblfileversions WHERE (dbo.tblFileVersions.FilePathfull LIKE '%AcroRd32.exe%') AND (dbo.tblFileVersions.FileVersion LIKE '9.0%'))
jreimer
Posted: Wednesday, August 06, 2008 4:34:38 PM
Rank: Freeware Member
Groups: Member

Joined: 5/6/2008
Posts: 17
Location: Ellenville, NY
Alright tweaked it to this and now all machines are showing up as needing update which is not correct.

' This is a sample report that checks all computers if they have the latest version of SAV
' The file that we need to check : %programfiles%\Adobe\Reader 9.0\AcroRd32.exe

' Add the file that we need to scan to the tsysfiles table
' you can do the same from the GUI interface

' Create the query to check for the latest version
' the latest version of our software is 9.0.0.322

CREATE VIEW dbo.web30repAdobe
AS
SELECT TOP 100 PERCENT dbo.tblComputers.Computername AS Computer FROM dbo.tblComputers where computername not in (select distinct dbo.tblComputers.Computername from dbo.tblfileversions WHERE (dbo.tblFileVersions.FilePathfull LIKE '%AcroRd32.exe%') AND (dbo.tblFileVersions.FileVersion LIKE '9.0%'))
ORDER BY dbo.tblComputers.Computername

GO

INSERT INTO dbo.TsysFiles
(Searchfile, Enabled)
VALUES ('%programfiles%\Adobe\Reader 9.0\AcroRd32.exe', 1)

'Add the view to the reports table

INSERT INTO [tsysreports] ([Reportquery],[Reporttitle]) VALUES ('web30repAdobe','Adobe Reader Update')

Anything you can think of that i am doing wrong. SQL is all new to me.
Cobra7
Posted: Tuesday, August 12, 2008 10:58:21 PM

Rank: Premium user
Groups: Member , Premium Users

Joined: 7/25/2008
Posts: 10
Location: Omaha
Useing MS SQL express (not the Lansweeper scripting)

Code:
select c.username,c.computername,s.softwarename,s.softwareversion
from tblcomputers c, tblsoftware s
where c.computername = s.computername
and s.computername in (select computername from tblsoftware
where s.softwarename like 'adobe reader%' and s.softwarename != 'Adobe Reader 8.1.2')
order by softwarename,softwareversion


This finds everyone who has Adobe but not version 8.1.2 (the version my company uses).
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