‎03-18-2010 05:03 PM
CREATE VIEW [dbo].[custrepNotLatestSymantecEndpointProtection]
AS
SELECT dbo.tblADComputers.Computername, dbo.tblADComputers.OperatingSystem, dbo.tblADComputers.OU, Query.Version
FROM dbo.tblADComputers LEFT OUTER JOIN
(SELECT TOP (100) PERCENT tblADComputers_1.OU, tblADComputers_1.Computername, dbo.tblSoftware.softwareName AS Software,
dbo.tblSoftware.softwareVersion AS Version, dbo.tblSoftware.SoftwarePublisher AS Publisher
FROM dbo.tblSoftware RIGHT OUTER JOIN
dbo.tblComputers ON dbo.tblComputers.Computername = dbo.tblSoftware.ComputerName RIGHT OUTER JOIN
dbo.tblADComputers AS tblADComputers_1 ON tblADComputers_1.Computername = dbo.tblComputers.Computername
GROUP BY tblADComputers_1.OU, tblADComputers_1.Computername, dbo.tblSoftware.softwareName, dbo.tblSoftware.softwareVersion,
dbo.tblSoftware.SoftwarePublisher
HAVING (dbo.tblSoftware.softwareName LIKE 'Symantec Endpoint Protection%')) AS Query ON
dbo.tblADComputers.Computername = Query.Computername
WHERE (NOT (Query.Version = '11.0.5002.333'))
GO
INSERT INTO [tsysreports] ([Reportquery],[Reporttitle]) VALUES ('custrepNotLatestSymantecEndpointProtection','Software: Not latest Symantec Endpoint Protection version (RU5)')
GO
‎03-18-2010 05:59 PM
‎03-18-2010 05:13 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now