Configuring SmartPower with Group Policy

1. Introduction

By default, SmartPower reads its configuration from an XML file in %programdata%\SmartPower.

SmartPower will automatically switch to using a group policy configuration if it finds the two mandatory values (see 3.1 Mandatory values) in this registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Ignatu Software\SmartPower.

When SmartPower is using a group policy configuration, any user that opens the SmartPower Configuration Utility will see a message telling them that their system administrator is managing their settings. They will not be able to make changes to their configuration.

2. Administrative template

For ease of configuration, I strongly recommend that you download and import the following administrative template file (ADM):

Download latest SmartPower ADM

3. Registry values

3.1 Mandatory values

In order for SmartPower to use a group policy configuration, both of the following registry values must be present:

Name Type Allowed values Explanation
ConfigureWithGroupPolicy DWORD 0, 1 Set to 1 to tell SmartPower to load its configuration from the registry. Set to 0 to tell SmartPower to load its configuration from the local configuration file.
TargetPowerStatePriority1 SZ Suspend, Hibernate, Shutdown Sets the 1st priority power state for SmartPower to try when turning off the computer. If the power state is not supported, SmartPower will try the 2nd priority power state (see below).

3.2 Optional values

Name Type Allowed values Default value Explanation
TargetPowerStatePriority2 SZ Suspend, Hibernate, Shutdown, Disable Disable Sets the 2nd priority power state for SmartPower to try when turning off the computer. If the power state is not supported, SmartPower will try the 3rd priority power state (see below). If set to Disable, and the 1st priority power state was not supported, SmartPower will be disabled.
TargetPowerStatePriority3 SZ Shutdown, Disable Disable Sets the 3rd priority power state for SmartPower to try when turning off the computer. If set to Disable, and the 2nd priority power state was not supported, SmartPower will be disabled.
GraceTime DWORD 3 – 60 5 Sets the grace time in minutes.
StayOnForActiveUsers DWORD 1 – 1440 N/A Sets the number of minutes that it takes for a user to be considered idle. If this value is not set, the "Stay on when there are active users" feature will be disabled.
StayOnForDevices SZ Comma separated IPs/hostnames N/A Sets the device IPs/hostnames. If this value is not set, the "Stay on when other devices are on" feature will be disabled.
StayOnForNetwork DWORD 0 – 65536 N/A Sets the threshold, in bytes, for all installed network adapters. If this value is not set, the "Stay on when traffic on a network interface is above a threshold" feature will be disabled.
StayOnForCpu DWORD 0 – 99 N/A Sets the CPU percentage threshold. If this value is not set, the "Stay on when CPU usage is above a threshold" feature will be disabled.
StayOnForProcesses SZ Comma separated process names N/A Sets the process names. If this value is not set, the "Stay on when certain processes are running" feature will be disabled.
StayOnForPowerRequestSystemPower DWORD 0, 1 0 Set to 1 to tell SmartPower to stay on when another program is requesting system power.
StayOnForPowerRequestDisplayPower DWORD 0, 1 0 Set to 1 to tell SmartPower to stay on when another program is requesting display power.
StayOnForPowerRequestAwayMode DWORD 0, 1 0 Set to 1 to tell SmartPower to stay on when another program is requesting away mode.
StopStartServices SZ Comma separated service names N/A Sets the names of the services that SmartPower will attempt to stop before the computer sleeps/hibernates, and start when the computer resumes.
RunAfterResume SZ File path N/A Sets the full path to an executable file that will be run every time the computer resumes.
WriteDebugLog DWORD 0, 1 0 Set to 1 to tell SmartPower to write a debug log.

3.3 Schedules

SmartPower supports up to 20 Group Policy schedules. Each schedule consists of multiple registry values. The registry value names include a 2 digit numeric identifier (e.g. 01, 02, 03); in the table below, this identifier has been replaced with "XX". A schedule must contain 1 or more days.

Name Type Allowed values Explanation
ScheduleXXStartHour DWORD 0 – 23 The hour component of the start time.
ScheduleXXStartMinute DWORD 0 – 59 The minute component of the start time.
ScheduleXXEndHour DWORD 0 – 23 The hour component of the end time.
ScheduleXXEndMinute DWORD 0 – 59 The minute component of the end time.
ScheduleXXWakeUp DWORD 0, 1 Set to 1 to tell SmartPower to wake up the computer at the start time of the schedule.
ScheduleXXDayMon DWORD 0, 1 Set to 1 to add Monday to the schedule.
ScheduleXXDayTue DWORD 0, 1 Set to 1 to add Tuesday to the schedule.
ScheduleXXDayWed DWORD 0, 1 Set to 1 to add Wednesday to the schedule.
ScheduleXXDayThu DWORD 0, 1 Set to 1 to add Thursday to the schedule.
ScheduleXXDayFri DWORD 0, 1 Set to 1 to add Friday to the schedule.
ScheduleXXDaySat DWORD 0, 1 Set to 1 to add Saturday to the schedule.
ScheduleXXDaySun DWORD 0, 1 Set to 1 to add Sunday to the schedule.