cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fjca
Champion Sweeper II
Hello all,

We have a few machines that only list one video controller, namely the Dameware MiniRemoteControl (virtual) driver . We now that they are using the Standard VGA driver, but for some reason it does not appear on the list.

What we've been trying to get working is a report that shows a list of machines which have only one display driver listed, and that driver is Dameware.

Something like this:

Where Count(tblVideoController.Caption) = 1 and tblVideocontroller.Caption like '%Dameware%'

Can you help ?

1 ACCEPTED SOLUTION
Daniel_B
Lansweeper Alumni
In this case you'll need to add a separate subquery to your report which counts installed video controllers:

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblVideoController
On tblAssets.AssetID = tblVideoController.AssetID
Inner Join (Select Count(tblVideoController.Win32_VideoControllerid)
As [number video controllers],
tblVideoController.AssetID
From tblVideoController
Group By tblVideoController.AssetID) tCount On tCount.AssetID =
tblAssets.AssetID
Where tblAssetCustom.State = 1 And tCount.[number video controllers] = 1 And
tblVideoController.Caption Like '%dameware%'
Order By tblAssets.AssetName

View solution in original post

2 REPLIES 2
fjca
Champion Sweeper II
Thank you, that worked just fine.
I knew I had to use a subquery, but the correct syntax was eluding me...
Daniel_B
Lansweeper Alumni
In this case you'll need to add a separate subquery to your report which counts installed video controllers:

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblVideoController
On tblAssets.AssetID = tblVideoController.AssetID
Inner Join (Select Count(tblVideoController.Win32_VideoControllerid)
As [number video controllers],
tblVideoController.AssetID
From tblVideoController
Group By tblVideoController.AssetID) tCount On tCount.AssetID =
tblAssets.AssetID
Where tblAssetCustom.State = 1 And tCount.[number video controllers] = 1 And
tblVideoController.Caption Like '%dameware%'
Order By tblAssets.AssetName