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?
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)
Please log in to answer
Posted by:
Hubasan
17 years ago
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
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:
Trooper23
17 years ago
Posted by:
KPrinz
17 years ago
Posted by:
Trooper23
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.