‎04-14-2017 04:02 PM
Solved! Go to Solution.
‎04-24-2017 02:11 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.Assettype,
tblAssets.AssetUnique,
tblAssets.IPAddress,
tblAssetCustom.Location,
tblAssets.Description,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
TsysChassisTypes.ChassisName,
TsysChassisTypes.Chassistype,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.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 tblSystemEnclosure on tblSystemEnclosure.AssetID = tblAssets.AssetID
Inner Join TsysChassisTypes on TsysChassisTypes.Chassistype = tblSystemEnclosure.ChassisTypes
Inner Join (Select Top 1000000 tblRegistry.AssetID, tblRegistry.Regkey, tblRegistry.Valuename, tblRegistry.Value, tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%Umbrella Roaming Client' And tblRegistry.Valuename = 'DefaultRecoveryFolderPath') as registry on registry.AssetID = tblAssets.AssetID
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblState.Statename = 'Active'
and (TsysChassisTypes.Chassistype = 8 Or TsysChassisTypes.Chassistype = 9 Or TsysChassisTypes.Chassistype = 10 Or TsysChassisTypes.Chassistype = 11)
Order By tblAssets.AssetName, tblAssets.Domain
‎04-24-2017 03:14 PM
‎04-24-2017 02:11 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.Assettype,
tblAssets.AssetUnique,
tblAssets.IPAddress,
tblAssetCustom.Location,
tblAssets.Description,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
TsysChassisTypes.ChassisName,
TsysChassisTypes.Chassistype,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.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 tblSystemEnclosure on tblSystemEnclosure.AssetID = tblAssets.AssetID
Inner Join TsysChassisTypes on TsysChassisTypes.Chassistype = tblSystemEnclosure.ChassisTypes
Inner Join (Select Top 1000000 tblRegistry.AssetID, tblRegistry.Regkey, tblRegistry.Valuename, tblRegistry.Value, tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%Umbrella Roaming Client' And tblRegistry.Valuename = 'DefaultRecoveryFolderPath') as registry on registry.AssetID = tblAssets.AssetID
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblState.Statename = 'Active'
and (TsysChassisTypes.Chassistype = 8 Or TsysChassisTypes.Chassistype = 9 Or TsysChassisTypes.Chassistype = 10 Or TsysChassisTypes.Chassistype = 11)
Order By tblAssets.AssetName, tblAssets.Domain
‎04-20-2017 05:25 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now