Changes

Jump to: navigation, search

Power Settings

2,152 bytes added, 21:06, 11 November 2009
Created page with 'One of the most annoying things about Windows XP (and maybe later) is that users have to be in the admin group to change the power profile on their PC. This changes that!<br> Th…'
One of the most annoying things about Windows XP (and maybe later) is that users have to be in the admin group to change the power profile on their PC. This changes that!<br>

This gives end users the exact rights they need to change power settings and no more.<br>

This package relies on the [http://setacl.sourceforge.net/index.html SetACL] tool and the [http://technet.microsoft.com/en-us/library/cc748940(WS.10).aspx powercfg] tool which is available in Windows XP SP2 onwards.<br>

Many thanks to the folks [http://blogs.msdn.com/aaron_margosis/archive/2005/02/09/370263.aspx here] and [http://nsis.sourceforge.net/Use_setacl_to_change_Power_Options here].<br>

<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>

<packages>
<package
id='powerconfig'
name='Allow Users to Change Power Settings'
revision='1'
priority='800'
reboot='false'>

<check type="registry" condition="equals" path="HKLM\Software\xxxxx\wpkg\powerconfig" value="1"/>

<install cmd='"%SOFTWARE%\system\setacl.exe" -on "HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy" -ot reg -actn ace -ace "n:users;p:set_val,create_subkey"' />
<install cmd='"%SOFTWARE%\system\setacl.exe" -on "HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Controls Folder\PowerCfg\PowerPolicies" -ot reg -actn ace -ace "n:users;p:set_val,create_subkey"' />
<install cmd='"%SOFTWARE%\system\powercfg.exe" /setactive "Always On"' />
<install cmd='REG ADD HKLM\SOFTWARE\xxxxx\wpkg\ /v "powerconfig" /d "1" /t REG_DWORD /f' />

<upgrade cmd='"%SOFTWARE%\system\setacl.exe" -on "HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy" -ot reg -actn ace -ace "n:users;p:set_val,create_subkey"' />
<upgrade cmd='"%SOFTWARE%\system\setacl.exe" -on "HKLM\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Controls Folder\PowerCfg\PowerPolicies" -ot reg -actn ace -ace "n:users;p:set_val,create_subkey"' />
<upgrade cmd='"%SOFTWARE%\system\powercfg.exe" /setactive "Always On"' />
<upgrade cmd='REG ADD HKLM\SOFTWARE\xxxxx\wpkg\ /v "powerconfig" /d "1" /t REG_DWORD /f' />

</package>
</packages>
</source>
Anonymous user

Navigation menu