Changes

Jump to: navigation, search

Power Settings

3,672 bytes removed, 15:32, 8 February 2012
Sorry this is not working for all users, il will work more on this and edit again later
</source>
 
=== Configure Power Management with powercfg in Windows XP ===
 
Since Windows XP SP2 powecfg.exe can be used to manage Power schemes. This can be used as a GreenIT tool to manage the power consumption of the computers. This can be used in combination with [[PowerOff]] to shutdown computers at night if the hibernate mode is not used.
 
For WindowsXP PowerCfg options see : http://ss64.com/nt/powercfg-xp.html
 
This script is inspired from : http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_powerconfig
 
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
 
<!-- Configure Energy settings -->
 
<packages>
<package id="powercfg" name="Configure energy settings" revision="%PKG_VERSION%" reboot="false" priority="80">
<variable name="PKG_VERSION" value="1" />
 
<check type="logical" condition="or">
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkg_powercfg\Version" value="%PKG_VERSION%" />
<check type="logical" condition="not">
<!-- Only if Windows XP -->
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName" value="Microsoft Windows XP" />
</check>
</check>
 
<install cmd='reg add "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkg_powercfg" /v "Version" /d "%PKG_VERSION%" /t REG_SZ /f' />
<!-- Use powercfg do create a power management scheme -->
<install cmd='powercfg /CREATE Economic' />
<install cmd='powercfg /CHANGE Economic /monitor-timeout-ac 20' />
<install cmd='powercfg /CHANGE Economic /monitor-timeout-dc 10' />
<install cmd='powercfg /CHANGE Economic /disk-timeout-ac 20' />
<install cmd='powercfg /CHANGE Economic /disk-timeout-dc 10' />
<install cmd='powercfg /CHANGE Economic /standby-timeout-ac 20' />
<install cmd='powercfg /CHANGE Economic /standby-timeout-dc 10' />
<install cmd='powercfg /CHANGE Economic /hibernate-timeout-ac 0' />
<install cmd='powercfg /CHANGE Economic /hibernate-timeout-dc 60' />
<install cmd='powercfg /CHANGE Economic /processor-throttle-ac ADAPTIVE' />
<install cmd='powercfg /CHANGE Economic /processor-throttle-dc ADAPTIVE' />
<install cmd='powercfg /SETACTIVE Economic' />
<!-- Allow hibernate -->
<install cmd='powercfg /HIBERNATE on' />
 
<upgrade cmd='reg add "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkg_powercfg" /v "Version" /d "%PKG_VERSION%" /t REG_SZ /f' />
<!-- Use powercfg do create a power management scheme -->
<upgrade cmd='powercfg /CREATE Economic' />
<upgrade cmd='powercfg /CHANGE Economic /monitor-timeout-ac 20' />
<upgrade cmd='powercfg /CHANGE Economic /monitor-timeout-dc 10' />
<upgrade cmd='powercfg /CHANGE Economic /disk-timeout-ac 20' />
<upgrade cmd='powercfg /CHANGE Economic /disk-timeout-dc 10' />
<upgrade cmd='powercfg /CHANGE Economic /standby-timeout-ac 20' />
<upgrade cmd='powercfg /CHANGE Economic /standby-timeout-dc 10' />
<upgrade cmd='powercfg /CHANGE Economic /hibernate-timeout-ac 0' />
<upgrade cmd='powercfg /CHANGE Economic /hibernate-timeout-dc 60' />
<upgrade cmd='powercfg /CHANGE Economic /processor-throttle-ac ADAPTIVE' />
<upgrade cmd='powercfg /CHANGE Economic /processor-throttle-dc ADAPTIVE' />
<upgrade cmd='powercfg /SETACTIVE Economic' />
<!-- Allow hibernate -->
<upgrade cmd='powercfg /HIBERNATE on' />
 
<remove cmd='reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkg_powercfg" /v "Version" /f' />
<remove cmd='powercfg /DELETE Economic' />
 
</package>
</packages>
</source>
[[Category:Silent Installers]]
[[Category: Changing Windows settings]]
Anonymous user

Navigation menu