‎11-21-2014 08:47 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblVmwareInfo.Version,
tblVmwareInfo.BiosVersion,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblVmwareGuest.Name As Guest,
tblVmwareGuest.IsRunning As State
From tblAssetCustom
Inner Join (tblVmwareGuest
Inner Join tblAssets On tblVmwareGuest.AssetID = tblAssets.AssetID)
On tblAssetCustom.AssetID = tblAssets.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tblVmwareInfo On tblVmwareInfo.AssetID = tblAssets.AssetID
Where (Case When tblVmwareGuest.ToolsVersionStatus = 4 Then 'Unmanaged'
End) = 'Unmanaged' And tblState.Statename = 'Active'
Order By tblAssets.IPNumeric,
tblAssets.AssetName,
Guest
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now