powercfg available on Win2000 ?

  • Thread starter Thread starter flahmeshess
  • Start date Start date
F

flahmeshess

I read that powercfg is available starting Win 2003. Is it also made
available for Win 2000 ?

What I want to do is to change the power option. eg. I want to let
the computer go into sleep mode after 2359 for a delay of 15 mins.
Next day, I want to set it to not sleep after 7pm. And after 2359,
sleep again after 15 min.

I'm thinking of scheduling a batch program to change the settings.
But I need an utility like powercfg. Hopefully, it's available on Win
2000. If not, what other options do I have ? Thanks.
 
May work but not supported (whatever that means). Here's the quote from
kb888742:

(quote)
The Powercfg.exe tool is not supported in Microsoft Windows 2000. This is true
even though the version of Powercfg.exe that is included in Windows Server 2003
may work in Windows 2000.

Additionally, the version of Powercfg.exe that is included in Windows XP SP2
does not work in Windows 2000.
(end quote)

The Powercfg.exe tool is not supported in Windows 2000
http://support.microsoft.com/kb/888742

Google is your friend.
 
Thanks for the reply. Unfortunately, I don't have Win 2003. Any
other solutions ? Would it work if I save the portion of the registry
and then run it ? Just guessing.
 
It's beyond me. The info I passed on to you was found using Google.

Hopefully, someone with some smarts on this subject will jump in and help you.
 
Alternatively, is there a command line program which I can call that
would put the PC to sleep mode ?
 
Ok. Thanks.
I'll try to use the Windows Scheduler to schedule this PsShutdown so
that it only kicks in when the system is idle for 10 min at certain
hours and see if it works. Overall, I'll set the sleep to no.
 
The scheduler does not seem to work. SO I've tried to export the
registry entries for sleep and wake mode and then run it at certain
times to change the power option. Seems to be working. Still testing.
 
Now it doens't seem to work.

I set all my values as I wanted.. SleepMode, WakeMode, and then set
the schemes correctly. And exported the values to 2 files from the key
HKEY_CURRENT_USER\Control Panel\PowerCfg

SleepMode
WakeMode

SleepMode is suppose to select the SleepMode scheme. It did but the
System Standby value does not seem to change. It stays at the same
old value when I last set it from the Power Option screen. Say if I
set the System Standby to Never. I then run SleepMode scheme. The
Scheme is changed to SleepMode but the value is still never. It should
be 5 min.

I wonder why it is able to change the scheme name but not the value in
System Standby ? Any idea ?
 
It won't work because it has to be processed by the PowrProf.dll. You
can do the registry changes but after the change is made you will have
to call on the powrprof.dll to reapply the power policy. I haven't done
this before, and I can't check right now so I don't know what exported
functions are available with the Windows 2000 powrprof.dll. You can
verify for yourself by getting Nirsoft's DLL Export Viewer.

For example, we know that this exported function can be run from a
command line:

RUNDLL32.EXE PowrProf.dll,SetSuspendState
http://support.microsoft.com/kb/555569

It might be possible to run other exported function in the same maner,
no guarantee on it, you will have to try it and see. Power Management
Functions list here: http://msdn2.microsoft.com/en-us/library/aa373163.aspx

I don't know if they all apply to Windows 2000 or if they can be run
with a simple command as above, up to you to verify.

John
 
I thought I appended to this forum. But it was lost.
Anyway, I want to thank you greately for this tip. I manage to get it
to work. I found the command to load the profile again. So thanks
very much.
 
You're welcome. Your other post is still showing, you had started two
threads on the same subject.

Your other thread was: Using Regedit to change Power Schemes

You had mentioned in that thread that you had gotten it to work by
running: Rundll32.exe powrprof.dll,LoadCurrentPwrScheme

John
 
Back
Top