X-Ecutioner Posted March 26, 2004 Posted March 26, 2004 I'm makin an unattended install for my laptop and I want to know where to find the settings for the power configuration settings in the registry? Like the standby time and hibernation and standby options. Anyone know?
XtremeMaC Posted March 26, 2004 Posted March 26, 2004 i don't know but i can suggest u powercfg (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...
DarkBringer Posted March 27, 2004 Posted March 27, 2004 How about here....[HKEY_CURRENT_USER\Control Panel\PowerCfg]
XtremeMaC Posted March 27, 2004 Posted March 27, 2004 ok here's the usage of powercfg which u can get with powercfg /?POWERCFG [/list | /QUERY [name]| /CREATE name | /DELETE name | /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..
Aaron Posted March 27, 2004 Posted March 27, 2004 Just so you know, powercfg.exe won't be available in Windows XP until SP2
X-Ecutioner Posted March 27, 2004 Author Posted March 27, 2004 Ah nuts. Well...back to searchin the registry.
Aaron Posted March 27, 2004 Posted March 27, 2004 Attached.I haven't tested to see if its dependant on anything though.powercfg.exe
evilvoice Posted March 27, 2004 Posted March 27, 2004 its dependent on something...just the exe does nothing...i tried a powercfg /? and /help and nothin
XtremeMaC Posted March 27, 2004 Posted March 27, 2004 hmm wierd let me check // File name: C:\WINDOWS\system32\powercfg.exe// Created : 27:03:2004 14:27// Type : Dependenciesactiveds.dll c:\windows\system32\activeds.dlladsldpc.dll c:\windows\system32\adsldpc.dlladvapi32.dll c:\windows\system32\advapi32.dlladvpack.dll c:\windows\system32\advpack.dllapphelp.dll c:\windows\system32\apphelp.dllatl.dll c:\windows\system32\atl.dllauthz.dll c:\windows\system32\authz.dllbrowseui.dll c:\windows\system32\browseui.dllcabinet.dll c:\windows\system32\cabinet.dllcdfview.dll c:\windows\system32\cdfview.dllcertcli.dll c:\windows\system32\certcli.dllcfgmgr32.dll c:\windows\system32\cfgmgr32.dllclusapi.dll c:\windows\system32\clusapi.dllcomctl32.dll c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2096_x-ww_a7d210bd\comctl32.dllcomdlg32.dll c:\windows\system32\comdlg32.dllcredui.dll c:\windows\system32\credui.dllcrypt32.dll c:\windows\system32\crypt32.dllcryptui.dll c:\windows\system32\cryptui.dllcscdll.dll c:\windows\system32\cscdll.dlldbghelp.dll c:\windows\system32\dbghelp.dlldevmgr.dll c:\windows\system32\devmgr.dlldhcpcsvc.dll c:\windows\system32\dhcpcsvc.dlldnsapi.dll c:\windows\system32\dnsapi.dllduser.dll c:\windows\system32\duser.dllefsadu.dll c:\windows\system32\efsadu.dllesent.dll c:\windows\system32\esent.dllgdi32.dll c:\windows\system32\gdi32.dllgdiplus.dll c:\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.2600.2096_x-ww_51b29046\gdiplus.dllhnetcfg.dll c:\windows\system32\hnetcfg.dllimagehlp.dll c:\windows\system32\imagehlp.dllimm32.dll c:\windows\system32\imm32.dllinetcomm.dll c:\windows\system32\inetcomm.dlliphlpapi.dll c:\windows\system32\iphlpapi.dllkernel32.dll c:\windows\system32\kernel32.dlllinkinfo.dll c:\windows\system32\linkinfo.dlllz32.dll c:\windows\system32\lz32.dllmfc42u.dll c:\windows\system32\mfc42u.dllmlang.dll c:\windows\system32\mlang.dllmobsync.dll c:\windows\system32\mobsync.dllmpr.dll c:\windows\system32\mpr.dllmprapi.dll c:\windows\system32\mprapi.dllmprui.dll c:\windows\system32\mprui.dllmsasn1.dll c:\windows\system32\msasn1.dllmsgina.dll c:\windows\system32\msgina.dllmshtml.dll c:\windows\system32\mshtml.dllmsi.dll c:\windows\system32\msi.dllmsimg32.dll c:\windows\system32\msimg32.dllmsoert2.dll c:\windows\system32\msoert2.dllmsrating.dll c:\windows\system32\msrating.dllmssign32.dll c:\windows\system32\mssign32.dllmsvcp60.dll c:\windows\system32\msvcp60.dllmsvcrt.dll c:\windows\system32\msvcrt.dllmswsock.dll c:\windows\system32\mswsock.dllnetapi32.dll c:\windows\system32\netapi32.dllnetcfgx.dll c:\windows\system32\netcfgx.dllnetman.dll c:\windows\system32\netman.dllnetplwiz.dll c:\windows\system32\netplwiz.dllnetrap.dll c:\windows\system32\netrap.dllnetshell.dll c:\windows\system32\netshell.dllnetui0.dll c:\windows\system32\netui0.dllnetui1.dll c:\windows\system32\netui1.dllnetui2.dll c:\windows\system32\netui2.dllntdll.dll c:\windows\system32\ntdll.dllntdsapi.dll c:\windows\system32\ntdsapi.dllntlanman.dll c:\windows\system32\ntlanman.dllodbc32.dll c:\windows\system32\odbc32.dllole32.dll c:\windows\system32\ole32.dlloleacc.dll c:\windows\system32\oleacc.dlloleaut32.dll c:\windows\system32\oleaut32.dlloledlg.dll c:\windows\system32\oledlg.dllolepro32.dll c:\windows\system32\olepro32.dllpowrprof.dll c:\windows\system32\powrprof.dll <====== this maybe??printui.dll c:\windows\system32\printui.dllpsapi.dll c:\windows\system32\psapi.dllquery.dll c:\windows\system32\query.dllrasapi32.dll c:\windows\system32\rasapi32.dllrasdlg.dll c:\windows\system32\rasdlg.dllrasman.dll c:\windows\system32\rasman.dllregapi.dll c:\windows\system32\regapi.dllrpcrt4.dll c:\windows\system32\rpcrt4.dllrtutils.dll c:\windows\system32\rtutils.dllsamlib.dll c:\windows\system32\samlib.dllscecli.dll c:\windows\system32\scecli.dllsecur32.dll c:\windows\system32\secur32.dllsetupapi.dll c:\windows\system32\setupapi.dllshdocvw.dll c:\windows\system32\shdocvw.dllshell32.dll c:\windows\system32\shell32.dllshlwapi.dll c:\windows\system32\shlwapi.dllshsvcs.dll c:\windows\system32\shsvcs.dlltapi32.dll c:\windows\system32\tapi32.dllurlmon.dll c:\windows\system32\urlmon.dlluser32.dll c:\windows\system32\user32.dlluserenv.dll c:\windows\system32\userenv.dllutildll.dll c:\windows\system32\utildll.dlluxtheme.dll c:\windows\system32\uxtheme.dllversion.dll c:\windows\system32\version.dllw32topl.dll c:\windows\system32\w32topl.dllwinhttp.dll c:\windows\system32\winhttp.dllwininet.dll c:\windows\system32\wininet.dllwinmm.dll c:\windows\system32\winmm.dllwinscard.dll c:\windows\system32\winscard.dllwinspool.drv c:\windows\system32\winspool.drvwinsta.dll c:\windows\system32\winsta.dllwintrust.dll c:\windows\system32\wintrust.dllwldap32.dll c:\windows\system32\wldap32.dllwmi.dll c:\windows\system32\wmi.dllws2_32.dll c:\windows\system32\ws2_32.dllws2help.dll c:\windows\system32\ws2help.dllwsock32.dll c:\windows\system32\wsock32.dllwtsapi32.dll c:\windows\system32\wtsapi32.dllwzcdlg.dll c:\windows\system32\wzcdlg.dllwzcsapi.dll c:\windows\system32\wzcsapi.dllwzcsvc.dll c:\windows\system32\wzcsvc.dllif it helps....
Aaron Posted March 27, 2004 Posted March 27, 2004 That's odd, /? worked on SP1. Probably best to wait for SP2 then
X-Ecutioner Posted March 27, 2004 Author Posted March 27, 2004 Yea Ill jsut manually configure it after each install untill sp2 arrives. Thanks for all the help guys
gtaylor Posted March 28, 2004 Posted March 28, 2004 To expand on what DarkBringer pointed out in his post. The power scheme is set by the CurrentPowerPolicy key: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 BatteryThe 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
techtype Posted March 28, 2004 Posted March 28, 2004 @AaronXPThe one that you posted is for SP2 RC1.There is an older one that works for SP1. I posted it some time back.powercfg.exe
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now