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 "
CMILLERAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph OLoughlinIT Support SpecialistCommented:
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 OLoughlinIT Support SpecialistCommented:
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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

CMILLERAuthor Commented:
Are you saying its all three
0
Joseph OLoughlinIT Support SpecialistCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 OLoughlinIT Support SpecialistCommented:
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 OLoughlinIT Support SpecialistCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.