Where to find power settings in registry?
#1
Posted 26 March 2004 - 05:50 PM
#2
Posted 26 March 2004 - 05:56 PM
(right now i'm in a comp that doesn't have powercfg therefore i cannot tell u the switches to use)
u can create a new or use an existing power profile and make changes to it....
i know that doesn't answer the question I'll try to get back to u when i get back...
#3
Posted 26 March 2004 - 06:08 PM
[HKEY_CURRENT_USER\Control Panel\PowerCfg]
#4
Posted 26 March 2004 - 06:38 PM
Quote
/SETACTIVE name | /CHANGE name settings |
/HIBERNATE {ON|OFF} | /EXPORT name [/FILE filename] |
/IMPORT name [/FILE filename] | /GLOBALPOWERFLAG {ON|OFF} /OPTION flag |
/BATTERYALARM {LOW|CRITICAL} [settings] |
/DEVICEQUERY queryflags | /DEVICEENABLEWAKE devicename |
/DEVICEDISABLEWAKE devicename | /?]
Description:
This command line tool enables an administrator to control
the power settings on a system.
Parameter List:
/LIST, /L Lists the names of existing power schemes.
/QUERY, /Q Displays the configuration of the specified power scheme.
If no name is specified, the configuration of the currently
active power scheme is displayed.
/CREATE, /C Creates a power scheme with the specified name. The new
scheme is created with the properties of the currently
active scheme.
/DELETE, /D Deletes the power scheme with the specified name.
/SETACTIVE, /S Makes the power scheme with the specified name active.
/CHANGE, /X Changes settings of the specified power scheme. Additional
switches specify the changes as follows:
/monitor-timeout-ac <minutes>
/monitor-timeout-dc <minutes>
/disk-timeout-ac <minutes>
/disk-timeout-dc <minutes>
/standby-timeout-ac <minutes>
/standby-timeout-dc <minutes>
/hibernate-timeout-ac <minutes>
/hibernate-timeout-dc <minutes>
/processor-throttle-ac <throttle>
/processor-throttle-dc <throttle>
AC settings are used when the system is on AC power.
DC settings are used when the system is on battery power.
Setting a timeout to zero will disable the corresponding
timeout feature. Supported throttle settings are NONE
CONSTANT, DEGRADE, and ADAPTIVE.
/EXPORT, /E Exports the power scheme with the specified name to a
file. If no filename is specified, the default is
SCHEME.POW. This additional parameter is supported:
/FILE <filename>
/IMPORT, /I Imports the power scheme from a file under the specified
name. If no filename is specified, the default is
SCHEME.POW. If a scheme with that name already exists, it
is replaced with the new one. This additional parameter
is supported:
/FILE <filename>
/HIBERNATE, /H {ON|OFF} Enables/Disables the hibernate feature. Hibernate
timeout is not supported on all systems.
/NUMERICAL, /N Allows the power scheme to be operated upon to be specified
using a numerical identifier. When using this switch, in
place of the name of the power scheme on the command line,
specify its numerical identifier. This switch may be used
in combination with the /QUERY, /DELETE, /SETACTIVE,
/CHANGE, /EXPORT, and /IMPORT commands.
/GLOBALPOWERFLAG, /G {ON|OFF} Turns one of the global power flags on/off.
Valid flags (to be used after "/OPTION ") are:
BATTERYICON: Turns the battery meter icon in the
system tray on/off.
MULTIBATTERY: Turns on/off multiple battery display
in system Power Meter.
RESUMEPASSWORD: Prompt for password on resuming the
system.
WAKEONRING: Turn on/off wake on ring support.
VIDEODIM: Turn on/off support for dimming video
display on battery power.
/AVAILABLESLEEPSTATES, /A Reports the sleep states available on the
system. Attempts to report reasons why sleep states are
unavailable.
/BATTERYALARM, /B {LOW|CRITICAL} Configures the battery alarm. The
following switches can be specified:
/activate <on|off>
Enables or disables the alarm.
/level <percentage (0 - 100)>
The alarm will be activated when the power level
reaches this percentage.
/text <on|off>
Turns the text notification on or off.
/sound <on|off>
Turns the audible notification on or off.
/action <none|shutdown|hibernate|standby>
Specifies the action to take when this alarm goes
off. Not all actions are always available.
/forceaction <on|off>
Force stand by or shutdown even if a program stops
responding.
/program <on|off>
Specifies a program to run. schtasks.exe /change
may be used to configure the program.
/DEVICEQUERY <queryflags> will return a list of devices that meet the
criteria specified in <queryflags>. Possible values
for <queryflags> are:
wake_from_S1_supported - return all devices that support
waking the system from a light sleep state.
wake_from_S2_supported - return all devices that support
waking the system from a deeper sleep state.
wake_from_S3_supported - return all devices that support
waking from the deepest sleep state.
wake_from_any - return all devices that support waking
from any sleep state.
S1_supported - list devices supporting light sleep states.
S2_supported - list devices supporting deeper sleep.
S3_supported - list devices supporting deepest sleep.
S4_supported - list devices supporting system hibernation.
wake_programmable - list devices that are user-configurable
to wake the system from a sleep state.
wake_armed - list devices that are currently configured to
wake the system from any sleep state.
all_devices - return all devices present in the system.
all_devices_verbose - return verbose list of devices.
/DEVICEENABLEWAKE <devicename> enable the device to wake the system from a
sleep state. <devicename> is a device retrieved using
the '/DEVICEQUERY wake_programmable' parameter.
/DEVICEDISABLEWAKE <devicename> disable the device from waking the system
from a sleep state. <devicename> is a device retrieved
using the '/DEVICEQUERY wake_armed' parameter.
/HELP, /? Displays information on command-line parameters.
Examples:
POWERCFG /LIST
POWERCFG /QUERY scheme
POWERCFG /QUERY
POWERCFG /CREATE scheme
POWERCFG /DELETE scheme
POWERCFG /SETACTIVE scheme
POWERCFG /CHANGE scheme /monitor-timeout-dc 15
POWERCFG /CHANGE scheme /monitor-timeout-dc 0
POWERCFG /HIBERNATE on
POWERCFG /EXPORT scheme /file file
POWERCFG /QUERY number /NUMERICAL
POWERCFG /GLOBALPOWERFLAG on /OPTION BATTERYICON
POWERCFG /AVAILABLESLEEPSTATES
POWERCFG /BATTERYALARM low
POWERCFG /BATTERYALARM critical /ACTIVATE on /LEVEL 6 /ACTION hibernate
POWERCFG /DEVICEQUERY wake_armed
POWERCFG /DEVICEENABLEWAKE "Microsoft USB IntelliMouse Explorer"
if u need help with this i can help I've been using it..
#6
Posted 26 March 2004 - 07:46 PM
#8
Posted 27 March 2004 - 01:17 PM
I haven't tested to see if its dependant on anything though.
Attached File(s)
-
powercfg.exe (48K)
Number of downloads: 441
#9
Posted 27 March 2004 - 01:21 PM
#11
Posted 27 March 2004 - 01:29 PM
dependencies said:
// Created : 27:03:2004 14:27
// Type : Dependencies
activeds.dll c:\windows\system32\activeds.dll
adsldpc.dll c:\windows\system32\adsldpc.dll
advapi32.dll c:\windows\system32\advapi32.dll
advpack.dll c:\windows\system32\advpack.dll
apphelp.dll c:\windows\system32\apphelp.dll
atl.dll c:\windows\system32\atl.dll
authz.dll c:\windows\system32\authz.dll
browseui.dll c:\windows\system32\browseui.dll
cabinet.dll c:\windows\system32\cabinet.dll
cdfview.dll c:\windows\system32\cdfview.dll
certcli.dll c:\windows\system32\certcli.dll
cfgmgr32.dll c:\windows\system32\cfgmgr32.dll
clusapi.dll c:\windows\system32\clusapi.dll
comctl32.dll c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2096_x-ww_a7d210bd\comctl32.dll
comdlg32.dll c:\windows\system32\comdlg32.dll
credui.dll c:\windows\system32\credui.dll
crypt32.dll c:\windows\system32\crypt32.dll
cryptui.dll c:\windows\system32\cryptui.dll
cscdll.dll c:\windows\system32\cscdll.dll
dbghelp.dll c:\windows\system32\dbghelp.dll
devmgr.dll c:\windows\system32\devmgr.dll
dhcpcsvc.dll c:\windows\system32\dhcpcsvc.dll
dnsapi.dll c:\windows\system32\dnsapi.dll
duser.dll c:\windows\system32\duser.dll
efsadu.dll c:\windows\system32\efsadu.dll
esent.dll c:\windows\system32\esent.dll
gdi32.dll c:\windows\system32\gdi32.dll
gdiplus.dll c:\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.2600.2096_x-ww_51b29046\gdiplus.dll
hnetcfg.dll c:\windows\system32\hnetcfg.dll
imagehlp.dll c:\windows\system32\imagehlp.dll
imm32.dll c:\windows\system32\imm32.dll
inetcomm.dll c:\windows\system32\inetcomm.dll
iphlpapi.dll c:\windows\system32\iphlpapi.dll
kernel32.dll c:\windows\system32\kernel32.dll
linkinfo.dll c:\windows\system32\linkinfo.dll
lz32.dll c:\windows\system32\lz32.dll
mfc42u.dll c:\windows\system32\mfc42u.dll
mlang.dll c:\windows\system32\mlang.dll
mobsync.dll c:\windows\system32\mobsync.dll
mpr.dll c:\windows\system32\mpr.dll
mprapi.dll c:\windows\system32\mprapi.dll
mprui.dll c:\windows\system32\mprui.dll
msasn1.dll c:\windows\system32\msasn1.dll
msgina.dll c:\windows\system32\msgina.dll
mshtml.dll c:\windows\system32\mshtml.dll
msi.dll c:\windows\system32\msi.dll
msimg32.dll c:\windows\system32\msimg32.dll
msoert2.dll c:\windows\system32\msoert2.dll
msrating.dll c:\windows\system32\msrating.dll
mssign32.dll c:\windows\system32\mssign32.dll
msvcp60.dll c:\windows\system32\msvcp60.dll
msvcrt.dll c:\windows\system32\msvcrt.dll
mswsock.dll c:\windows\system32\mswsock.dll
netapi32.dll c:\windows\system32\netapi32.dll
netcfgx.dll c:\windows\system32\netcfgx.dll
netman.dll c:\windows\system32\netman.dll
netplwiz.dll c:\windows\system32\netplwiz.dll
netrap.dll c:\windows\system32\netrap.dll
netshell.dll c:\windows\system32\netshell.dll
netui0.dll c:\windows\system32\netui0.dll
netui1.dll c:\windows\system32\netui1.dll
netui2.dll c:\windows\system32\netui2.dll
ntdll.dll c:\windows\system32\ntdll.dll
ntdsapi.dll c:\windows\system32\ntdsapi.dll
ntlanman.dll c:\windows\system32\ntlanman.dll
odbc32.dll c:\windows\system32\odbc32.dll
ole32.dll c:\windows\system32\ole32.dll
oleacc.dll c:\windows\system32\oleacc.dll
oleaut32.dll c:\windows\system32\oleaut32.dll
oledlg.dll c:\windows\system32\oledlg.dll
olepro32.dll c:\windows\system32\olepro32.dll
powrprof.dll c:\windows\system32\powrprof.dll <====== this maybe??
printui.dll c:\windows\system32\printui.dll
psapi.dll c:\windows\system32\psapi.dll
query.dll c:\windows\system32\query.dll
rasapi32.dll c:\windows\system32\rasapi32.dll
rasdlg.dll c:\windows\system32\rasdlg.dll
rasman.dll c:\windows\system32\rasman.dll
regapi.dll c:\windows\system32\regapi.dll
rpcrt4.dll c:\windows\system32\rpcrt4.dll
rtutils.dll c:\windows\system32\rtutils.dll
samlib.dll c:\windows\system32\samlib.dll
scecli.dll c:\windows\system32\scecli.dll
secur32.dll c:\windows\system32\secur32.dll
setupapi.dll c:\windows\system32\setupapi.dll
shdocvw.dll c:\windows\system32\shdocvw.dll
shell32.dll c:\windows\system32\shell32.dll
shlwapi.dll c:\windows\system32\shlwapi.dll
shsvcs.dll c:\windows\system32\shsvcs.dll
tapi32.dll c:\windows\system32\tapi32.dll
urlmon.dll c:\windows\system32\urlmon.dll
user32.dll c:\windows\system32\user32.dll
userenv.dll c:\windows\system32\userenv.dll
utildll.dll c:\windows\system32\utildll.dll
uxtheme.dll c:\windows\system32\uxtheme.dll
version.dll c:\windows\system32\version.dll
w32topl.dll c:\windows\system32\w32topl.dll
winhttp.dll c:\windows\system32\winhttp.dll
wininet.dll c:\windows\system32\wininet.dll
winmm.dll c:\windows\system32\winmm.dll
winscard.dll c:\windows\system32\winscard.dll
winspool.drv c:\windows\system32\winspool.drv
winsta.dll c:\windows\system32\winsta.dll
wintrust.dll c:\windows\system32\wintrust.dll
wldap32.dll c:\windows\system32\wldap32.dll
wmi.dll c:\windows\system32\wmi.dll
ws2_32.dll c:\windows\system32\ws2_32.dll
ws2help.dll c:\windows\system32\ws2help.dll
wsock32.dll c:\windows\system32\wsock32.dll
wtsapi32.dll c:\windows\system32\wtsapi32.dll
wzcdlg.dll c:\windows\system32\wzcdlg.dll
wzcsapi.dll c:\windows\system32\wzcsapi.dll
wzcsvc.dll c:\windows\system32\wzcsvc.dll
if it helps....
#12
Posted 27 March 2004 - 01:34 PM
#13
Posted 27 March 2004 - 01:38 PM
#14
Posted 27 March 2004 - 06:00 PM
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\PowerCfg] "CurrentPowerPolicy"="2" ;Power Scheme (Default="0") ; "0" = Home/Office Desk ; "1" = Portable/Laptop ; "2" = Presentation ; "3" = Always On ; "4" = Minimal Power Management ; "5" = Max Battery
The actual settings are stored as Binary values PowerPolicies\[Policy Number]\Policies key.
The Advanced and Hibernate options are stored in the following registry key:
HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy\Policies
#15
Posted 27 March 2004 - 07:43 PM
The one that you posted is for SP2 RC1.
There is an older one that works for SP1. I posted it some time back.
Attached File(s)
-
powercfg.exe (32K)
Number of downloads: 244
#16
Posted 27 March 2004 - 07:54 PM
I wasn't wrong
cause i've been using it. for a sec there i thought i've been using sp2 for a loooong time
#18
Posted 09 May 2004 - 10:54 PM
#19
Posted 13 July 2005 - 10:13 AM
Anybody have any ideas yet?
#20
Posted 11 August 2010 - 04:02 AM
GrimSage, on 09 May 2004 - 10:54 PM, said:
Found this thread while searching for the same thing as you and 'Snife'. If I find a solution I will post it - even though this thread is over 6 years old haha. Maybe NLite has something built in..
- ← RunOnceEx stalls need to reboot it half way to carry on
- Unattended Windows 2000/XP/2003
- Deleting shortcuts in the Start/Programs menu →



Help


Back to top









