‎05-07-2013 09:14 AM
Solved! Go to Solution.
‎05-07-2013 10:17 PM
Alulux wrote:
hello, I would like to have a report that shows me the different versions of Internet Explorer 6-10. Is this possible?
Thanks...
Select Top 1000000
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Description,
tblAssets.Lastseen,
tsysOS.Image As icon,
tblSoftwareUni.SoftwarePublisher,
tblSoftware.softwareVersion,
tblSoftwareUni.softwareName,
tblSoftware.Installdate
From
tblAssets
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblSoftware On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblAssetCustom.State = 1
And tblComputersystem.Domainrole < 2
And tblSoftwareUni.SoftwarePublisher Like 'Microsoft%'
And tblSoftwareUni.softwareName Like '%Internet Explorer%'
Union All
Select Top 1000000
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Description,
tblAssets.Lastseen,
tsysOS.Image As icon,
'Microsoft Corporation' As Publisher,
tblFileVersions.FileVersion,
'Windows Internet Explorer ' + Left(tblFileVersions.FileVersion, CharIndex('.', tblFileVersions.FileVersion) - 1) As SoftwareName,
tblFileVersions.CreationDate As InstallDate
From
tblAssets
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblFileVersions On tblFileVersions.AssetID = tblAssets.AssetID
Where
tblAssetCustom.State = 1
And tblComputersystem.Domainrole < 2
And tblFileVersions.FilePathfull Like '%iexplore.exe'
And (tblFileVersions.FileVersion Like '9.%'
Or tblFileVersions.FileVersion Like '10.%')
CREATE VIEW vMSIEVersions AS
Select Top 1000000
tblSoftware.AssetID,
tblSoftware.SoftwareVersion,
tblSoftware.InstallDate,
tblSoftwareUni.SoftwareName,
tblSoftwareUni.SoftwarePublisher,
tblSoftwareUni.Approved
FROM
tblSoftware
INNER JOIN tblSoftwareUni ON tblSoftwareUni.SoftID = tblSoftware.SoftID
WHERE
tblSoftwareUni.softwareName Like '%Internet Explorer%'
And tblSoftwareUni.SoftwarePublisher Like 'Microsoft%'
Union All
Select Top 1000000
tblFileVersions.AssetID,
tblFileVersions.FileVersion,
tblfileVersions.CreationDate AS InstallDate,
'Windows Internet Explorer ' + Left(tblFileVersions.FileVersion, CharIndex('.', tblFileVersions.FileVersion)-1) AS SoftwareName,
'Microsoft Corporation' AS Publisher,
1 AS Approved
FROM
tblFileVersions
WHERE
tblFileVersions.FilePathfull Like '%iexplore.exe'
And ( tblFileVersions.FileVersion Like '9.%'
Or tblFileVersions.FileVersion Like '10.%' )
Select Top 1000000
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Description,
tblAssets.Lastseen,
tsysOS.Image As icon,
vMSIEVersions.SoftwareName
From
tblAssets
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join vMSIEVersions On vMSIEVersions.AssetID = tblAssets.AssetID
Where
tblAssetCustom.State = 1
And tblComputersystem.Domainrole < 2
Order By
tblAssets.AssetName
‎05-08-2013 10:37 PM
‎05-07-2013 10:17 PM
Alulux wrote:
hello, I would like to have a report that shows me the different versions of Internet Explorer 6-10. Is this possible?
Thanks...
Select Top 1000000
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Description,
tblAssets.Lastseen,
tsysOS.Image As icon,
tblSoftwareUni.SoftwarePublisher,
tblSoftware.softwareVersion,
tblSoftwareUni.softwareName,
tblSoftware.Installdate
From
tblAssets
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblSoftware On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblAssetCustom.State = 1
And tblComputersystem.Domainrole < 2
And tblSoftwareUni.SoftwarePublisher Like 'Microsoft%'
And tblSoftwareUni.softwareName Like '%Internet Explorer%'
Union All
Select Top 1000000
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Description,
tblAssets.Lastseen,
tsysOS.Image As icon,
'Microsoft Corporation' As Publisher,
tblFileVersions.FileVersion,
'Windows Internet Explorer ' + Left(tblFileVersions.FileVersion, CharIndex('.', tblFileVersions.FileVersion) - 1) As SoftwareName,
tblFileVersions.CreationDate As InstallDate
From
tblAssets
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblFileVersions On tblFileVersions.AssetID = tblAssets.AssetID
Where
tblAssetCustom.State = 1
And tblComputersystem.Domainrole < 2
And tblFileVersions.FilePathfull Like '%iexplore.exe'
And (tblFileVersions.FileVersion Like '9.%'
Or tblFileVersions.FileVersion Like '10.%')
CREATE VIEW vMSIEVersions AS
Select Top 1000000
tblSoftware.AssetID,
tblSoftware.SoftwareVersion,
tblSoftware.InstallDate,
tblSoftwareUni.SoftwareName,
tblSoftwareUni.SoftwarePublisher,
tblSoftwareUni.Approved
FROM
tblSoftware
INNER JOIN tblSoftwareUni ON tblSoftwareUni.SoftID = tblSoftware.SoftID
WHERE
tblSoftwareUni.softwareName Like '%Internet Explorer%'
And tblSoftwareUni.SoftwarePublisher Like 'Microsoft%'
Union All
Select Top 1000000
tblFileVersions.AssetID,
tblFileVersions.FileVersion,
tblfileVersions.CreationDate AS InstallDate,
'Windows Internet Explorer ' + Left(tblFileVersions.FileVersion, CharIndex('.', tblFileVersions.FileVersion)-1) AS SoftwareName,
'Microsoft Corporation' AS Publisher,
1 AS Approved
FROM
tblFileVersions
WHERE
tblFileVersions.FilePathfull Like '%iexplore.exe'
And ( tblFileVersions.FileVersion Like '9.%'
Or tblFileVersions.FileVersion Like '10.%' )
Select Top 1000000
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Description,
tblAssets.Lastseen,
tsysOS.Image As icon,
vMSIEVersions.SoftwareName
From
tblAssets
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join vMSIEVersions On vMSIEVersions.AssetID = tblAssets.AssetID
Where
tblAssetCustom.State = 1
And tblComputersystem.Domainrole < 2
Order By
tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now