Notification

Icon
Error

Active Power plan

Posted: Friday, January 9, 2015 3:07:22 PM(UTC)
Daniel.B

Daniel.B

Member Original PosterPosts: 1,150
1
Like
List of computers with their active power plan

Pre-requisite: Set up custom registry scanning for ActivePowerScheme
- Under Configuration\Custom scanning, section Registry Scanning, hit Add registry key to scan
- Rootkey: HKEY_LOCAL_MACHINE
- Regpath: SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
- Regvalue: ActivePowerScheme
- Rescan your assets (open their asset page or select all server from the Assets tab and hit Rescan)


Meets all the following criteria:
- Active asset
- Windows asset
- Registry succesfully scanned for ActivePowerScheme

Sorted on:
- Asset name

Code:

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'
Order By tblAssets.AssetName
Apaulcolypse
#1Apaulcolypse Member Posts: 25  
posted: 4/2/2019 3:15:26 PM(UTC)
How could we include the Screen and Sleep time settings in the scan?




Originally Posted by: Daniel.B Go to Quoted Post
List of computers with their active power plan

Pre-requisite: Set up custom registry scanning for ActivePowerScheme
- Under Configuration\Custom scanning, section Registry Scanning, hit Add registry key to scan
- Rootkey: HKEY_LOCAL_MACHINE
- Regpath: SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes
- Regvalue: ActivePowerScheme
- Rescan your assets (open their asset page or select all server from the Assets tab and hit Rescan)


Meets all the following criteria:
- Active asset
- Windows asset
- Registry succesfully scanned for ActivePowerScheme

Sorted on:
- Asset name

Code:

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'
Order By tblAssets.AssetName


Active Discussions

Lansweeper 2019 Fall Release
by  Esben.D   Go to last post Go to first unread
Last post: 9/5/2019 3:48:58 PM(UTC)
Lansweeper Introducing Our Brand New Report Library
by  Esben.D  
Go to last post Go to first unread
Last post: 7/2/2019 2:09:53 PM(UTC)
Lansweeper Lansweeper subreddit
by  Esben.D   Go to last post Go to first unread
Last post: 4/4/2019 8:57:11 AM(UTC)
Lansweeper 2019 Spring Release
by  Esben.D  
Go to last post Go to first unread
Last post: 3/5/2019 4:11:32 PM(UTC)
Lansweeper Mozilla Firefox Remote Execution Vulnerability
by  Esben.D   Go to last post Go to first unread
Last post: 10/5/2018 12:33:36 PM(UTC)
Lansweeper Lansweeper 7 Released
by  Esben.D  
Go to last post Go to first unread
Last post: 9/19/2018 1:33:10 PM(UTC)
Lansweeper MEGA Chrome Extension Vulnerability
by  Esben.D   Go to last post Go to first unread
Last post: 9/6/2018 1:25:43 PM(UTC)
Lansweeper Intel Foreshadow Vulnerability
by  Esben.D  
Go to last post Go to first unread
Last post: 8/20/2018 1:54:28 PM(UTC)