/build/static/layout/Breadcrumb_cap_w.png

How do i change the Power Scheme with a MSI?

Hello,

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

Answers (6)

Posted by: Hubasan 17 years ago
Senior Yellow Belt
2
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]
"CurrentPowerPolicy"="6"

[HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy]
"Policies"=hex:01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,02,00,00,00,03,00,00,00,00,00,00,00,02,00,00,00,03,00,00,00,00,00,00,00,02,00,00,00,01,00,00,00,00,00,00,00,02,00,00,00,01,00,00,00,00,00,00,00,01,00,00,00,03,00,00,00,03,00,00,00,04,00,00,c0,01,00,00,00,05,00,00,00,01,00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,00,16,00,00,00

[HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies\6]
"Policies"=hex:01,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,2c,01,00,00,32,32,00,03,04,00,00,00,04,00,00,00,01,00,00,00,14,f2,06,00,00,00,00,00,2c,01,00,00,00,00,00,00,58,02,00,00,00,00,64,64,64,64,95,71
"Name"="Custom Power Policy"
"Description"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg]
"LastID"="6"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy]
"Policies"=hex:01,00,00,00,01,00,00,00,01,00,00,00,03,00,00,00

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\PowerPolicies\6]
"Policies"=hex:01,00,00,00,02,00,00,00,04,00,00,00,02,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,84,03,00,00,00,00,00,00,02,00,00,00,04,00,00,c0,00,00,00,00,02,00,00,00,04,00,00,c0,00,00,00,00


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
Posted by: Tone 17 years ago
Second Degree Blue Belt
1
You can set,export and apply your scheme using powercfg.
Posted by: Tone 17 years ago
Second Degree Blue Belt
0
link to powercfg http://support.microsoft.com/kb/913622
Posted by: Trooper23 17 years ago
Orange Belt
0
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!
Posted by: KPrinz 17 years ago
Fourth Degree Green Belt
0
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...
Posted by: Trooper23 17 years ago
Orange Belt
0
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!!![:)]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ