I’ve been tasked with changing the Power Scheme of our XP OS. Were a Novell shop so deploying a GPO is not a option.

Anyway I have to change the Power scheme to “turn off monitor” to 1 hour. I tired to capture this with IS 11.5 Repackager but after I compile the ISM into a MSI and install it, it does not make the desired change even after reboot.

What should I try next?
0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer

You can set,export and apply your scheme using powercfg.
Answered 04/10/2007 by: Tone
Second Degree Blue Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Hey Trooper23,

I had a similar task some time ago and messing with Windows current Power Scheme is problematic. I had to create a new Scheme and import it that way.

Do the following:

1) Prepare the snapshot PC (do initial snapshot)

2) go to Display Properties/ScreenSaver and click on the Power Button.

3) Set all off the options you want and then click Save As

4) Give your new power scheme a name and click ok.

5) This will create registry keys in HKLM and HKCU probably following keys:

[HKEY_CURRENT_USER\Control Panel\PowerCfg]

[HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy]

[HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies\6]
"Name"="Custom Power Policy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\ProcessorPolicies\6]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\PowerPolicies\6]

The keys above were created when I set our Power Policy settings, and this one sets everything to NEVER. so don't use these keys for your policy.

As you can see above, newly created power policy gets a number 6 assigned to it and creates all other necessary registry keys to implement your power policy settings properly.

Once you do after snapshot, all of these reg keys will be saved to the MSI. However sometimes to trick the MSI into installing ONLY registry keys you have to give it a dummy file to copy somewhere. We usually put a blank .txt file in our Support folder on C: drive that gets cleaned up on regular bases. I have had this problem may times, where only deploying one dummy file with registry keys works.

Hope this helps and good luck
Answered 04/11/2007 by: Hubasan
Senior Yellow Belt

Please log in to comment
link to powercfg http://support.microsoft.com/kb/913622
Answered 04/12/2007 by: Tone
Second Degree Blue Belt

Please log in to comment
Hey Tone thanks for the link and the two replies. Were a XP SP1 shop and I have no Images with SP2 even all my VM’s are SP1, yeah I know. But I will try this when I have some free time, thanks!
Answered 04/13/2007 by: Trooper23
Orange Belt

Please log in to comment
Be aware of the fact that power settings are per user settings, so if you disable the monitor turn off in the admin context, you will still have your machines go blank after a while for the users...
Answered 04/13/2007 by: KPrinz
Fourth Degree Green Belt

Please log in to comment
Hey Hubasan your brilliant my friend, that worked. I can’t believe Repackager did not capture all the needed HKLM keys. It was the “LastID” line that I had to manually enter, once that was coming down life was good.

Thank you!!![:)]
Answered 04/13/2007 by: Trooper23
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity