‎05-01-2020 12:26 PM
‎05-05-2020 10:49 PM
‎05-06-2020 01:04 PM
pryan67 wrote:
Very odd...I've been playing with this and as soon as I add the anti-virus, it shows no results...but if I get rid of the "where", it shows all workstations (but no servers) Strange. I'll keep playing though
‎05-06-2020 04:45 PM
wayneRex wrote:pryan67 wrote:
Very odd...I've been playing with this and as soon as I add the anti-virus, it shows no results...but if I get rid of the "where", it shows all workstations (but no servers) Strange. I'll keep playing though
Great, thank you for taking a look
‎05-07-2020 11:34 AM
pryan67 wrote:wayneRex wrote:pryan67 wrote:
Very odd...I've been playing with this and as soon as I add the anti-virus, it shows no results...but if I get rid of the "where", it shows all workstations (but no servers) Strange. I'll keep playing though
Great, thank you for taking a look
Give this a shot
Select Top 1000000 unioned.assetid,
tblAssets.AssetName,
tsysOS.Image As icon,
unioned.software,
unioned.version,
unioned.Enabled,
unioned.Uptodate,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Description,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Location,
tsysIPLocations.IPLocation,
tsysOS.OSname As OS,
tblAssets.SP As SP,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDomainroles.Domainrolename
From ((Select a.assetid As assetid,
a.software As software,
a.version As version,
'software comparison' As RetrievedFrom,
'' As Enabled,
'' As Uptodate
From (Select tblSoftware.AssetID As assetid,
tblSoftwareUni.softwareName As software,
tblSoftware.softwareVersion As version
From tblSoftware
Inner Join tblSoftwareUni On tblSoftware.softID =
tblSoftwareUni.SoftID
Inner Join tsysantivirus On tblSoftwareUni.softwareName Like
tsysantivirus.Software) a)
Union
(Select tblAntivirus.AssetID As assetid,
tblAntivirus.DisplayName As software,
Null As version,
'WMI' As RetrievedFrom,
Case
When tblAntivirus.onAccessScanningEnabled = 1 Then 'Yes'
Else 'No'
End As Enabled,
Case
When tblAntivirus.productUpToDate = 1 Then 'Yes'
Else 'No'
End As Uptodate
From tblAntivirus)) unioned
Inner Join tblAssetCustom On unioned.assetid = tblAssetCustom.AssetID
Inner Join tblAssets On tblAssets.AssetID = unioned.assetid
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Left Join tsysIPLocations On tblAssets.LocationID = tsysIPLocations.LocationID
Inner Join tblDomainroles On tblDomainroles.Domainrole =
tblComputersystem.Domainrole
Where tblDomainroles.Domainrolename In ('Backup Domain Controller',
'Primary Domain Controller') And tblAssetCustom.State = 1
Order By tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now