• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1025
  • Last Modified:

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 "
0
CMILLER
Asked:
CMILLER
  • 5
  • 5
1 Solution
 
Joseph O'LoughlinCommented:
Hi CMILLER,

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
0
 
CMILLERAuthor Commented:
Neat tool

I cant tell which one though
0
 
Joseph O'LoughlinCommented:
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\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy\Policies
HKLM\System\Currentcontrolset\control\Session Manager\Power
HKCU\Control Panel\PowerCfg
If you open the three files in notepad you can combine them into one.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
CMILLERAuthor Commented:
Are you saying its all three
0
 
Joseph O'LoughlinCommented:
I believeed at first it's the first one, but on searching further it looks like the keys below
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg
HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy
HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\PowerPolicies
HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\PowerPolicies\3
it will require testing.  Could also be one of the entries below the other keys.   Take care making registry settings
There is also a utility called powercfg but it appears not to offer disk settings
0
 
CMILLERAuthor Commented:
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\PowerPolicies\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,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,b0,04,00,00,2c,01,00,00,20,1c,00,00,58,02,00,\
  00,00,00,64,64,64,64,95,71
0
 
Joseph O'LoughlinCommented:
In regmon filter for only the rundll32 process and look at the setvalue entries in the request column - yes multiple changes are made.
0
 
CMILLERAuthor Commented:
No Change for me in any of these:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\ProcessorPolicies\0

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\PowerPolicies\0

[HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy
0
 
Joseph O'LoughlinCommented:
It's the early hours here so I won't be perscriptive.  Goodnight.
0
 
CMILLERAuthor Commented:
I ran it twice, once each while changing values, here are the matches from both, that it changed.

HKCU\Control Panel\PowerCfg\PowerPolicies\0\Policies      
HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\PowerPolicies\0\Policies      
HKCU\Control Panel\PowerCfg\GlobalPowerPolicy\Policies      
HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy\Policies      
HKLM\SYSTEM\CURRENTCONTROLSET\Control\Session Manager\Power\AcPolicy      
HKLM\SYSTEM\CURRENTCONTROLSET\Control\Session Manager\Power\DcPolicy      
HKCU\Control Panel\PowerCfg\CurrentPowerPolicy

******************************************************

Whats weird is that when you change this one from one value to another, it does not change anything
HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg\GlobalPowerPolicy\Policies

******************************************************
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
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now