Chris Miller
asked on
Remotly change power options
NT4.0 domain with XP pro clients
How can I remotly change power options without using remote desktop
I want to set "Turn off hard disks " to " after 1 hour "
How can I remotly change power options without using remote desktop
I want to set "Turn off hard disks " to " after 1 hour "
ASKER
Neat tool
I cant tell which one though
I cant tell which one though
It is like drinking from a firehose. You need to set up filters for explorer and other open programs. I minimise everything except the applet and regmon and tile vertically then clear the log and apply the change.
Checkout
HKLM\Software\Microsoft\Wi ndows\Curr entVersion \Controls Folder\PowerCfg\GlobalPowe rPolicy\Po licies
HKLM\System\Currentcontrol set\contro l\Session Manager\Power
HKCU\Control Panel\PowerCfg
If you open the three files in notepad you can combine them into one.
Checkout
HKLM\Software\Microsoft\Wi
HKLM\System\Currentcontrol
HKCU\Control Panel\PowerCfg
If you open the three files in notepad you can combine them into one.
ASKER
Are you saying its all three
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It appears to change this, so I saved out a never.reg and a 1hour.reg, I can see some numbers have changes.
So, I left it set to never in the GUI Control Panel\Power options, exe'd the 1hour.reg but it did not change anything in the,
GUI Control Panel\Power options, even after a reboot.
It must change more than that one key???
************************** ********** ********** ********** ****
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolici es\0]
"Name"="Home/Office Desk"
"Description"="This scheme is suited to most home or desktop computers that are left plugged in all the time."
"Policies"=hex:01,00,00,00 ,00,00,00, 00,01,00,0 0,00,00,00 ,00,00,02, 00,00,00,0 0,\
00,00,00,00,00,00,00,00,00 ,00,00,2c, 01,00,00,3 2,32,00,03 ,04,00,00, 00,04,00,\
00,00,01,00,00,00,14,f2,06 ,00,b0,04, 00,00,2c,0 1,00,00,20 ,1c,00,00, 58,02,00,\
00,00,00,64,64,64,64,95,71
So, I left it set to never in the GUI Control Panel\Power options, exe'd the 1hour.reg but it did not change anything in the,
GUI Control Panel\Power options, even after a reboot.
It must change more than that one key???
**************************
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control
"Name"="Home/Office Desk"
"Description"="This scheme is suited to most home or desktop computers that are left plugged in all the time."
"Policies"=hex:01,00,00,00
00,00,00,00,00,00,00,00,00
00,00,01,00,00,00,14,f2,06
00,00,00,64,64,64,64,95,71
In regmon filter for only the rundll32 process and look at the setvalue entries in the request column - yes multiple changes are made.
ASKER
No Change for me in any of these:
[HKEY_LOCAL_MACHINE\SOFTWA RE\Microso ft\Windows \CurrentVe rsion\Cont rols Folder\PowerCfg\ProcessorP olicies\0
[HKEY_LOCAL_MACHINE\SOFTWA RE\Microso ft\Windows \CurrentVe rsion\Cont rols Folder\PowerCfg\PowerPolic ies\0
[HKLM\Software\Microsoft\W indows\Cur rentVersio n\Controls Folder\PowerCfg\GlobalPowe rPolicy
[HKEY_LOCAL_MACHINE\SOFTWA
[HKEY_LOCAL_MACHINE\SOFTWA
[HKLM\Software\Microsoft\W
It's the early hours here so I won't be perscriptive. Goodnight.
ASKER
I ran it twice, once each while changing values, here are the matches from both, that it changed.
HKCU\Control Panel\PowerCfg\PowerPolici es\0\Polic ies
HKLM\Software\Microsoft\Wi ndows\Curr entVersion \Controls Folder\PowerCfg\PowerPolic ies\0\Poli cies
HKCU\Control Panel\PowerCfg\GlobalPower Policy\Pol icies
HKLM\Software\Microsoft\Wi ndows\Curr entVersion \Controls Folder\PowerCfg\GlobalPowe rPolicy\Po licies
HKLM\SYSTEM\CURRENTCONTROL SET\Contro l\Session Manager\Power\AcPolicy
HKLM\SYSTEM\CURRENTCONTROL SET\Contro l\Session Manager\Power\DcPolicy
HKCU\Control Panel\PowerCfg\CurrentPowe rPolicy
************************** ********** ********** ********
Whats weird is that when you change this one from one value to another, it does not change anything
HKLM\Software\Microsoft\Wi ndows\Curr entVersion \Controls Folder\PowerCfg\GlobalPowe rPolicy\Po licies
************************** ********** ********** ********
I will copy out each key and add it to a main one for each value, add see what happens
Can you put all keys in one file: Value-Never.reg and Value1Hour.reg : then I could run one or the other
HKCU\Control Panel\PowerCfg\PowerPolici
HKLM\Software\Microsoft\Wi
HKCU\Control Panel\PowerCfg\GlobalPower
HKLM\Software\Microsoft\Wi
HKLM\SYSTEM\CURRENTCONTROL
HKLM\SYSTEM\CURRENTCONTROL
HKCU\Control Panel\PowerCfg\CurrentPowe
**************************
Whats weird is that when you change this one from one value to another, it does not change anything
HKLM\Software\Microsoft\Wi
**************************
I will copy out each key and add it to a main one for each value, add see what happens
Can you put all keys in one file: Value-Never.reg and Value1Hour.reg : then I could run one or the other
Use RegMon from Sysinternals.com to see what key is changed when you toggle the setting in the control panel.
Navigate to that key in regedit and export it creating a .reg file.
Add a call to that .reg file to your login script.
usual disclaimers apply