<br><font size=2 face="sans-serif">My experience with the windows powermanagement
features is that it is a per-user setting, but the user needs administrator
rights to change it..</font>
<br><font size=2 face="sans-serif">I however never tried the powercfg command,
but I assume it has the same 'restriction'. </font>
<br><font size=2 face="sans-serif">I have also seen situations where powermanagement
settings are correctly set, but are not applied by Windows.</font>
<br><font size=2 face="sans-serif">This happens when a normal user has
other settings than the administrator, the administrater was logged in,
and afterwards the user logs in.. Then the powermanagement settings of
the administrator sometimes stays active despite the fact that the user
has diferent PM settings..</font>
<br><font size=2 face="sans-serif">Bottom line: I found those settings
to be completely undependable.</font>
<br>
<br><font size=2 face="sans-serif">Regards</font>
<br><font size=2 face="sans-serif">Robin</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Anders Nilsson <andersn@isy.liu.se></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">wpkg-users@lists.wpkg.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">16.03.2009 17:31</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">[wpkg-users] Power preferences</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>I run the wpkg.js client from Windows XP startup script,
which means<br>
wpkg runs as the system user (I think), and try to install the following<br>
self-made package:<br>
<br>
<package id="powerproperties"<br>
  name="Power properties for monitor and standby"<br>
  revision="3"<br>
  reboot="false"<br>
  priority="10"><br>
<br>
  <install cmd='powercfg /S "Home/Office Desk"' /><br>
  <install cmd='powercfg /X "Home/Office Desk" /monitor-timeout-ac
15' /><br>
  <install cmd='powercfg /X "Home/Office Desk" /standby-timeout-ac
240' /><br>
  <upgrade cmd='powercfg /S "Home/Office Desk"' /><br>
  <upgrade cmd='powercfg /X "Home/Office Desk" /monitor-timeout-ac
15' /><br>
  <upgrade cmd='powercfg /X "Home/Office Desk" /standby-timeout-ac
240' /><br>
</package><br>
<br>
The problem is that the settings don't stick, that is nothing concerning<br>
power properties as changed. The client wpkg log file thinks everything<br>
is OK and that the package is successfully installed (or upgraded when<br>
applicable).<br>
<br>
Running the very same commands logged in as Administrator things work<br>
just as expected. When nobody is logged on the monitor shuts down after<br>
15 minutes and the system goes to standby in 4 hours.<br>
<br>
As far as I can see these power property settings is not a user<br>
preference, or is that my problem here?<br>
<br>
  /Anders<br>
-------------------------------------------------------------------------<br>
wpkg-users mailing list archives >> </font></tt><a href="http://lists.wpkg.org/pipermail/wpkg-users/"><tt><font size=2>http://lists.wpkg.org/pipermail/wpkg-users/</font></tt></a><tt><font size=2><br>
_______________________________________________<br>
wpkg-users mailing list<br>
wpkg-users@lists.wpkg.org<br>
</font></tt><a href="http://lists.wpkg.org/mailman/listinfo/wpkg-users"><tt><font size=2>http://lists.wpkg.org/mailman/listinfo/wpkg-users</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>