→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎01-06-2015 12:22 PM
Solved! Go to Solution.
‎01-06-2015 02:05 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
Case tblRegistry.Value
When '381b4222-f694-41f0-9685-ff5bb260df2e' Then 'Balanced'
When '8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c' Then 'High Performance'
When 'a1841308-3541-4fab-bc81-f71556f20b4a' Then 'Power Saver'
Else 'Unknown/Custom' End As [Power plan],
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
Where tblAssetCustom.State = 1 And tblRegistry.Valuename = 'ActivePowerScheme'
‎01-09-2015 12:20 PM
‎01-06-2015 03:37 PM
‎01-06-2015 02:05 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
Case tblRegistry.Value
When '381b4222-f694-41f0-9685-ff5bb260df2e' Then 'Balanced'
When '8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c' Then 'High Performance'
When 'a1841308-3541-4fab-bc81-f71556f20b4a' Then 'Power Saver'
Else 'Unknown/Custom' End As [Power plan],
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
Where tblAssetCustom.State = 1 And tblRegistry.Valuename = 'ActivePowerScheme'
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now