
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2009 06:25 PM
I have created a report that shows me all pc's that have one of the three particular AV packages we have used throughout the years. What I am trying to create is a report that shows me any pc's that do not have any of the three installed. This is the SQL code for the report that shows me all the pc's that do have AV installed.
SELECT
tblSoftware.ComputerName,
tblComputers.LastknownIP,
tblSoftware.softwareVersion,
tblSoftware.softwareName
FROM
tblComputers
INNER JOIN tblSoftware ON (tblComputers.Computername = tblSoftware.ComputerName)
WHERE
tblSoftware.softwareName = 'Norton Antivirus Corporate Edition' OR
tblSoftware.softwareName = 'Symantec Endpoint Protection' OR
tblSoftware.softwareName = 'Symantec Antivirus'
Basically I want the inverse of this report, I need a report that shows all pc's and their ip addresses that have none of the three packages installed. My problem seems to be no matter what combination I change I end up getting a report showing every pc in our domain and not just the ones that have none of the above installed.
Thanks for any help and we really enjoy the product, it has been a lifesaver as far as documentating what is installed in our network of 5,000 pc's.
SELECT
tblSoftware.ComputerName,
tblComputers.LastknownIP,
tblSoftware.softwareVersion,
tblSoftware.softwareName
FROM
tblComputers
INNER JOIN tblSoftware ON (tblComputers.Computername = tblSoftware.ComputerName)
WHERE
tblSoftware.softwareName = 'Norton Antivirus Corporate Edition' OR
tblSoftware.softwareName = 'Symantec Endpoint Protection' OR
tblSoftware.softwareName = 'Symantec Antivirus'
Basically I want the inverse of this report, I need a report that shows all pc's and their ip addresses that have none of the three packages installed. My problem seems to be no matter what combination I change I end up getting a report showing every pc in our domain and not just the ones that have none of the above installed.
Thanks for any help and we really enjoy the product, it has been a lifesaver as far as documentating what is installed in our network of 5,000 pc's.
Labels:
- Labels:
-
Report Center
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2009 09:28 PM
Must have missed this thread, sorry.
Is "Sophos Anti-Virus" the exact software listed in your software screen?
Is "Sophos Anti-Virus" the exact software listed in your software screen?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2009 10:01 PM
Can anyone help a brother out ?
THANKS !!!
THANKS !!!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2009 09:16 PM
Lansweeper Admin,
Can you please post the full statement. I am having a rough time getting the (not in) command to work.
I need to find all computer that dont have Sophos Anti-Virus installed.
Here is what i have so far:
Select Top 100 Percent tblSoftware.ComputerName, tblComputers.LastknownIP,
tblSoftware.softwareName, tblComputers.Username, tblSoftware.softwareVersion
From tblComputers Left Outer Join
tblSoftware On (tblComputers.Computername = tblSoftware.ComputerName)
Where tblSoftware.softwareName = 'Sophos Anti-Virus' And tblComputers.Username =
''
I am a premium user and LOVE the product.
Thanks
Can you please post the full statement. I am having a rough time getting the (not in) command to work.
I need to find all computer that dont have Sophos Anti-Virus installed.
Here is what i have so far:
Select Top 100 Percent tblSoftware.ComputerName, tblComputers.LastknownIP,
tblSoftware.softwareName, tblComputers.Username, tblSoftware.softwareVersion
From tblComputers Left Outer Join
tblSoftware On (tblComputers.Computername = tblSoftware.ComputerName)
Where tblSoftware.softwareName = 'Sophos Anti-Virus' And tblComputers.Username =
''
I am a premium user and LOVE the product.
Thanks

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2009 12:26 AM
Thank you very much for the quick reply and that worked beautifully and gave us exactly the report we were looking for.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2009 07:11 PM
Should be something like
... where computername not in (select computername from tblsoftware where softwareName = 'Norton Antivirus Corporate Edition') and computername not in (select computername from tblsoftware where softwareName = 'Symantec Endpoint Protection') and computername not in (select computername from tblsoftware where softwareName = 'Symantec Antivirus')
... where computername not in (select computername from tblsoftware where softwareName = 'Norton Antivirus Corporate Edition') and computername not in (select computername from tblsoftware where softwareName = 'Symantec Endpoint Protection') and computername not in (select computername from tblsoftware where softwareName = 'Symantec Antivirus')
