Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
computers not running a certain software package
jantjeb
#1 Posted : Tuesday, June 14, 2011 5:13:03 PM

Rank: Premium user

Groups: Premium Users
Posts: 21
i'm trying to create a query that shows me all the computers that does not have a software package installed. but i get the following error:

Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression

the query look as followed
Code:

Select tblComputers.Computer
From tblComputers
Where tblComputers.Computer != (Select tblComputers.Computer
  From tblComputers Inner Join tblsoftware On tblsoftware.ComputerName =
      tblComputers.Computername
  Where tblsoftware.softwareName = 'Software package that needs to be checked')


the sub query runs fine and gives all the pc's that have the software installed.
i now need a revered list with all the other computers.

the errors message is logical because i get a list. but i'm not sure how to do it else.
Lansweeper
#2 Posted : Tuesday, June 14, 2011 8:58:38 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,379
try this

Quote:
Select tblComputers.Computer
From tblComputers
Where tblComputers.Computer Not In (Select ComputerName
From tblsoftware
Where softwareName = 'Software package that needs to be checked')
jantjeb
#3 Posted : Wednesday, June 15, 2011 9:07:31 AM

Rank: Premium user

Groups: Premium Users
Posts: 21
thanks that helped alot

this is what i needed:

Code:

Select tblComputers.Computer
From tblComputers
Where tblComputers.Computer Not In (Select tblComputers.Computer
  From tblComputers Inner Join tblsoftware On tblsoftware.ComputerName =
      tblComputers.Computername
  Where tblsoftware.softwareName = 'Software package that needs to be checked')
robintre
#4 Posted : Wednesday, November 09, 2011 8:12:21 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 2
Location: Quebec city
This code is what i was looking for.

But I wonder if it's possible to have only one report where I could enter the software name as a parameter when I run it. This would avoid making a lot of reports.

Or even better, directly in the software overview, is it possible to view the computers where the software is not installed?

Lansweeper
#5 Posted : Thursday, November 10, 2011 1:50:06 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,379
robintre wrote:
But I wonder if it's possible to have only one report where I could enter the software name as a parameter when I run it. This would avoid making a lot of reports.


This is only possible in the configuration console. You can change the software criteria and instantly rerun the report. You cannot currently do this from the web console.

robintre wrote:
Or even better, directly in the software overview, is it possible to view the computers where the software is not installed?


No, this is not currently possible. Clicking on links in the software overview on the website will only show computers that do have the software installed, not ones that don't.
Users browsing this topic
Guest
Untag as favorite
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.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba