‎03-09-2015 02:22 PM
Solved! Go to Solution.
‎03-11-2015 03:31 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
Case
When tblComputersystem.SystemType Like 'x64-based PC' Then
tblOperatingsystem.Caption + ' (x64) SP' + Cast(tblAssets.SP As nvarchar)
Else tblOperatingsystem.Caption + ' SP' + Cast(tblAssets.SP As nvarchar)
End As FullOSname,
tblComputersystem.SystemType,
tblAssets.Username As [Last user logged on]
From tblAssets
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Where
tblAssets.AssetID In (Select tblFileVersions.AssetID From tblFileVersions
Where tblFileVersions.FilePathfull Like '%iexplore.exe' And
tblFileVersions.FileVersion Like '8.%')
And tblAssets.Assettype = -1
And tblOperatingsystem.Caption Like '%Windows 7 Enterprise%'
And tblAssets.IPAddress Like '%10.162.%'
Order By tblAssets.AssetName
‎03-11-2015 05:23 PM
‎03-11-2015 03:31 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
Case
When tblComputersystem.SystemType Like 'x64-based PC' Then
tblOperatingsystem.Caption + ' (x64) SP' + Cast(tblAssets.SP As nvarchar)
Else tblOperatingsystem.Caption + ' SP' + Cast(tblAssets.SP As nvarchar)
End As FullOSname,
tblComputersystem.SystemType,
tblAssets.Username As [Last user logged on]
From tblAssets
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Where
tblAssets.AssetID In (Select tblFileVersions.AssetID From tblFileVersions
Where tblFileVersions.FilePathfull Like '%iexplore.exe' And
tblFileVersions.FileVersion Like '8.%')
And tblAssets.Assettype = -1
And tblOperatingsystem.Caption Like '%Windows 7 Enterprise%'
And tblAssets.IPAddress Like '%10.162.%'
Order By tblAssets.AssetName
‎03-11-2015 12:28 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
Case
When tblComputersystem.SystemType Like 'x64-based PC' Then
tblOperatingsystem.Caption + ' (x64) SP' + Cast(tblAssets.SP As nvarchar)
Else tblOperatingsystem.Caption + ' SP' + Cast(tblAssets.SP As nvarchar)
End As FullOSname,
tblAssets.Username As [Last user logged on],
tblFileVersions.Found [IE installed],
Case
When CharIndex('.', tblFileVersions.FileVersion) >
0 Then SubString(tblFileVersions.FileVersion, 1, CharIndex('.',
tblFileVersions.FileVersion) - 1) Else 'unknown' End As [IE Version],
tblFileVersions.Lastchanged,
tblAssets.IPAddress
From tblAssets
Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Where Case
When tblComputersystem.SystemType Like 'x64-based PC' Then
tblOperatingsystem.Caption + ' (x64) SP' + Cast(tblAssets.SP As nvarchar)
Else tblOperatingsystem.Caption + ' SP' + Cast(tblAssets.SP As nvarchar)
End Like 'Microsoft Windows 7 Enterprise%' And Case
When CharIndex('.', tblFileVersions.FileVersion) >
0 Then SubString(tblFileVersions.FileVersion, 1, CharIndex('.',
tblFileVersions.FileVersion) - 1) Else 'unknown'
End Like 8 And tblAssets.IPAddress Like '%10.162.%' And
tblFileVersions.FilePathfull Like '%iexplore.exe' And tblAssets.Assettype = -1
Order By tblAssets.AssetName
‎03-09-2015 03:34 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
Case
When tblComputersystem.SystemType Like 'x64-based PC' Then
tblOperatingsystem.Caption + ' (x64) SP' + Cast(tblAssets.SP As nvarchar)
Else tblOperatingsystem.Caption + ' SP' + Cast(tblAssets.SP As nvarchar)
End As FullOSname,
tblAssets.Username As [Last user logged on],
tblFileVersions.Found [IE installed],
Case
When CharIndex('.', tblFileVersions.FileVersion) >
0 Then SubString(tblFileVersions.FileVersion, 1, CharIndex('.',
tblFileVersions.FileVersion) - 1) Else 'unknown' End As [IE Version],
tblFileVersions.Lastchanged
From tblAssets
Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Where tblFileVersions.FilePathfull Like '%iexplore.exe' And
tblAssets.Assettype = -1
Order By tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now