|
Configure Power Profiles via GPO |
|
|
|
|
Written by LazyNetworkAdmin
|
|
I was assigned one point to manage power profiles for the entire network. After doing much searching I did end up finding something. It is a Group Policy Administrative Template which allows you to configure the power profiles. This came in real handy and saved me a lot of time so I wanted to mirror the information here. Credit for this goes to the original author at http://www.terranovum.com/projects/energystar/ez_gpo.php
----------COPY EVERYTHING BELOW THIS LINE----------
#if version <= 2
CLASS USER
CATEGORY !!GPOnly
POLICY !!GPOnlyPolicy
KEYNAME "Software\Policies"
PART !!GPOnly_Tip1 TEXT
END PART
PART !!GPOnly_Tip2 TEXT
END PART
PART !!GPOnly_Tip3 TEXT
END PART
PART !!GPOnly_Tip4 TEXT
END PART
PART !!GPOnly_Tip5 TEXT
END PART
END POLICY
END CATEGORY
CLASS MACHINE
CATEGORY !!GPOnly
POLICY !!GPOnlyPolicy
KEYNAME "Software\Policies"
PART !!GPOnly_Tip1 TEXT
END PART
PART !!GPOnly_Tip2 TEXT
END PART
PART !!GPOnly_Tip3 TEXT
END PART
PART !!GPOnly_Tip4 TEXT
END PART
PART !!GPOnly_Tip5 TEXT
END PART
END POLICY
END CATEGORY
#endif
#if version >= 3
;;;;;;;;;; Machine;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CLASS MACHINE
; HKEY_LOCAL_MACHINE\SOFTWARE\Policies\TerraNovum\EZ_GPO
CATEGORY !!EZ_GPO
; Base Options
POLICY !!BASE_CFG
KEYNAME "Software\Policies\TerraNovum\EZ_GPO"
EXPLAIN !!BASE_CFG_EXP
PART "Power Management Settings Schema" DROPDOWNLIST REQUIRED
VALUENAME "SettingsScheme"
ITEMLIST
NAME !!SettingsSchemeSimpleIndex VALUE "Simple" Default
END ITEMLIST
END PART
PART "Power Management Settings Schema Major Version" NUMERIC REQUIRED
VALUENAME "MajorVersion"
DEFAULT 2
MIN 1
MAX 100
END PART
PART "Power Management Settings Schema Minor Version" NUMERIC REQUIRED
VALUENAME "MinorVersion"
DEFAULT 0
MIN 0
MAX 99
END PART
PART "Control Variable [Do Not Modify]" DROPDOWNLIST REQUIRED
VALUENAME "Control"
ITEMLIST
NAME "Control Variable [Do Not Modify]" VALUE "Verify" Default
END ITEMLIST
END PART
END POLICY
; Log Options
POLICY !!OPTIONS
KEYNAME "Software\Policies\TerraNovum\EZ_GPO\Options"
EXPLAIN !!OPTIONS_EXP
; PART [!!]name PartType
; type-dependent data
; [KEYNAME KeyName ]
; VALUENAME ValueName
; END PART
; PART "Security Override" CHECKBOX
; VALUENAME "SecurityBypass"
; VALUEON NUMERIC 1;Security Override flag
; VALUEOFF NUMERIC 0
; END PART
PART "Force Standby to Be Set on All Machines" CHECKBOX
VALUENAME "ForceStandby"
VALUEON NUMERIC 1;Force Standby flag
VALUEOFF NUMERIC 0
END PART
; PART "Log flag to turn on logging" CHECKBOX
; VALUENAME "Log"
; VALUEON NUMERIC 1; Log Flag
; VALUEOFF NUMERIC 0
; END PART
; PART "Log Level" NUMERIC
; VALUENAME "LogLevel"
; DEFAULT 1
; MIN 0
; MAX 10
; END PART
; PART "Log Server" EDITTEXT
; VALUENAME "LogServer"
; DEFAULT "localhost"
; END PART
; PART "Log File" EDITTEXT
; VALUENAME "LogFile"
; DEFAULT "%TEMP%\EZ_GPO_log.txt"
; END PART
END POLICY
; Simple Scheme
POLICY !!SETTINGS_SCHEME_SIMPLE
KEYNAME "Software\Policies\TerraNovum\EZ_GPO\Simple"
EXPLAIN !!SETTINGS_SCHEME_SIMPLE_EXP
PART "AC No User Monitor Timeout" NUMERIC REQUIRED
VALUENAME "ACUserMonIdleTime"
DEFAULT 10
MIN 0
MAX 300
END PART
PART "AC No User System Standby Timeout" NUMERIC REQUIRED
VALUENAME "ACUserStandByIdleTime"
DEFAULT 15
MIN 0
MAX 300
END PART
;Uncomment to get this functionality
; PART "AC No User Hard Disk Spindown Timeout" NUMERIC REQUIRED
; VALUENAME "ACUserHDDspindownIdleTime"
; DEFAULT 5
; MIN 0
; MAX 300
; END PART
; Below segment is not used
; PART "AC Machine Standby Timeout" NUMERIC REQUIRED
; VALUENAME "ACMachStandByIdleTime"
; DEFAULT 20
; MIN 0
; MAX 300
; END PART
PART "AC No User Hibernate Timeout" NUMERIC REQUIRED
VALUENAME "ACMachHibernateIdleTime"
DEFAULT 30
MIN 0
MAX 300
END PART
PART "DC No User Monitor Timeout" NUMERIC REQUIRED
VALUENAME "DCUserMonIdleTime"
DEFAULT 2
MIN 0
MAX 300
END PART
PART "DC No User System Standby Timeout" NUMERIC REQUIRED
VALUENAME "DCUserStandByIdleTime"
DEFAULT 5
MIN 0
MAX 300
END PART
;Uncomment to get this functionality
; PART "DC No User Hard Disk Spindown Timeout" NUMERIC REQUIRED
; VALUENAME "DCUserHDDspindownIdleTime"
; DEFAULT 5
; MIN 0
; MAX 300
; END PART
PART "DC No User Hibernate Timeout" NUMERIC REQUIRED
VALUENAME "DCMachHibernateIdleTime"
DEFAULT 10
MIN 0
MAX 300
END PART
END POLICY
END CATEGORY; EZ_GPO
;;;;;;;;; USER;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CLASS USER
; HKEY_CURRENT_USER\Software\Policies\TerraNovum\EZ_GPO
CATEGORY !!EZ_GPO
; Base Options
POLICY !!BASE_CFG
KEYNAME "Software\Policies\TerraNovum\EZ_GPO"
EXPLAIN !!BASE_CFG_EXP
PART "Power Management Settings Schema" DROPDOWNLIST REQUIRED
VALUENAME "SettingsScheme"
ITEMLIST
NAME !!SettingsSchemeSimpleIndex VALUE "Simple" Default
END ITEMLIST
END PART
PART "Power Management Settings Schema Major Version" NUMERIC REQUIRED
VALUENAME "MajorVersion"
DEFAULT 2
MIN 2
MAX 99
END PART
PART "Power Management Settings Schema Minor Version" NUMERIC REQUIRED
VALUENAME "MinorVersion"
DEFAULT 0
MIN 0
MAX 99
END PART
PART "Control Variable [Do Not Modify]" DROPDOWNLIST REQUIRED
VALUENAME "Control"
ITEMLIST
NAME "Control Variable [Do Not Modify]" VALUE "Verify" Default
END ITEMLIST
END PART
END POLICY
; Log Options
POLICY !!OPTIONS
KEYNAME "Software\Policies\TerraNovum\EZ_GPO\Options"
EXPLAIN !!OPTIONS_EXP
; PART [!!]name PartType
; type-dependent data
; [KEYNAME KeyName ]
; VALUENAME ValueName
; END PART
PART "Security Override" CHECKBOX
VALUENAME "SecurityBypass"
VALUEON NUMERIC 1;Security Override flag
VALUEOFF NUMERIC 0
END PART
PART "Force Standby to Be Set on All Machines" CHECKBOX
VALUENAME "ForceStandby"
VALUEON NUMERIC 1;Force Standby flag
VALUEOFF NUMERIC 0
END PART
; PART "Log flag to turn on logging" CHECKBOX
; VALUENAME "Log"
; VALUEON NUMERIC 1; Log Flag
; VALUEOFF NUMERIC 0
; END PART
; PART "Log Level" NUMERIC
; VALUENAME "LogLevel"
; DEFAULT 1
; MIN 0
; MAX 10
; END PART
; PART "Log Server" EDITTEXT
; VALUENAME "LogServer"
; DEFAULT "localhost"
; END PART
; PART "Log File" EDITTEXT
; VALUENAME "LogFile"
; DEFAULT "%TEMP%\EZ_GPO_log.txt"
; END PART
END POLICY
; Simple Scheme
POLICY !!SETTINGS_SCHEME_SIMPLE
KEYNAME "Software\Policies\TerraNovum\EZ_GPO\Simple"
EXPLAIN !!SETTINGS_SCHEME_SIMPLE_EXP
PART "AC User Monitor Timeout" NUMERIC REQUIRED
VALUENAME "ACUserMonIdleTime"
DEFAULT 10
MIN 0
MAX 300
END PART
PART "AC User System Standby Timeout" NUMERIC REQUIRED
VALUENAME "ACUserStandByIdleTime"
DEFAULT 15
MIN 0
MAX 300
END PART
PART "AC Machine Hibernate Timeout" NUMERIC REQUIRED
VALUENAME "ACMachHibernateIdleTime"
DEFAULT 30
MIN 0
MAX 300
END PART
PART "DC User Monitor Timeout" NUMERIC REQUIRED
VALUENAME "DCUserMonIdleTime"
DEFAULT 5
MIN 0
MAX 300
END PART
PART "DC User System Standby Timeout" NUMERIC REQUIRED
VALUENAME "DCUserStandByIdleTime"
DEFAULT 10
MIN 0
MAX 300
END PART
PART "DC Machine Hibernate Timeout" NUMERIC REQUIRED
VALUENAME "DCMachHibernateIdleTime"
DEFAULT 15
MIN 0
MAX 300
END PART
;Uncomment to get this functionality
; PART "AC User Hard Disk Spindown Timeout" NUMERIC REQUIRED
; VALUENAME "ACUserHDDspindownIdleTime"
; DEFAULT 5
; MIN 0
; MAX 300
; END PART
;Uncomment to get this functionality
; PART "DC User Hard Disk Spindown Timeout" NUMERIC REQUIRED
; VALUENAME "DCUserHDDspindownIdleTime"
; DEFAULT 5
; MIN 0
; MAX 300
; END PART
END POLICY
END CATEGORY; EZ_GPO
#endif
[strings]
GPOnly_Tip1="The EZ_GPO.adm file you have loaded requires Group Policy"
GPOnly_Tip2="in Windows 2000. You cannot use the System Policy Editor"
GPOnly_Tip3="to display Windows 2000 Group Policy settings."
GPOnly_Tip4=" "
GPOnly_Tip5="Enabling or disabling this policy has no effect."
GPOnly="Unsupported Administrative Templates"
GPOnlyPolicy="EZ_GPO.adm"
EZ_GPO="EZ GPO by the Environmental Protection Agency"
MONITOR_PM="PC Power Management"
BASE_CFG="Base Options"
BASE_CFG_EXP="These
are the base configuration settings for the program to function. You
should enable this and choose all of the defaults unless you are sure
about what you are doing. See the documentation for more info."
OPTIONS="Options"
OPTIONS_EXP="The
first option named Security Bypass (NB: User based only and not found
under the Computer Policy hive) directs the tool to bypass the
hardcoded restrictions placed on it to change power management
settings. See the documentation for more but it is only needed when
users are of type user or guest. Note, this is a safety override (like
rm -f) and does not actually gives users of insufficient rights, the
ability to change PM settings. The second option, Force Standby,
overrides the default behavior of the tool which enables system standby
on machines capable of S3 (ACPI ver.2) or better. Enabling this option
will allow the tool to set standby on earlier ACPI and APM2 capable
machines. This could be useful for non Intel or laptop heavy
environments since standby worked better on non S3 capable laptops as
opposed to desktops.
;NB: Logging is experimental and should not be used in production. There are
; also 3 options for logging. The first is to turn on Logging capabilities.
; The second is the level of log detail. 0-10 is the valid
; range where 10 gives the most verbose output. The third is the file for
; logging purposes. This can contain shell expansions such
; as %TEMP%\EZ_GPO_Log.txt for example. See the documentation for more Info."
SettingsSchemeSimpleIndex="Simple Settings Scheme"
SETTINGS_SCHEME_SIMPLE="Simple Scheme"
SETTINGS_SCHEME_SIMPLE_EXP="This
is the most basic Settings Scheme available. Each setting can be set to
a range of 0-300 minutes where 0 = 'Never'. NB: Hibernation should be
higher than System Standby or set to 0. It should never be equal to
System Standby."
----------COPY EVERYTHING ABOVE THIS LINE----------
paste this text into notepad and save it as EZ_GPO.adm
Import into your group policy management console and configure to your specifications.
This information is provided "AS IS" with no warranties expressed or implied.
|