a06lp Posted December 1, 2004 Posted December 1, 2004 I've tried this in the past, but it never worked.I've been using[HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy]and[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]but i always have to reset it.I just want EVERYTHING set to "Never"
Nologic Posted December 1, 2004 Posted December 1, 2004 Well you could config it on first boot with an AutoIt script. Just have the following bit in your script to open the "Power Options" control panel:Run ( @SystemDir & "\control.exe powercfg.cpl,@0,0" )Then just script it like you normally would.
a06lp Posted December 1, 2004 Author Posted December 1, 2004 dont want autoit...ive had too many problems with it
bek Posted December 1, 2004 Posted December 1, 2004 Did you run it ala?:REG ADD "HKCU\Control Panel\PowerCfg" /v CurrentPowerPolicy /d 3 /fREG ADD "HKU\.DEFAULT\Control Panel\PowerCfg" /v CurrentPowerPolicy /d 3 /fi.e. "3" is "Never" (see below)If you tweak it - you can save the reg key out and use it to replace the default power policy.HKEY_USERS\.DEFAULT\Control Panel\PowerCfg\PowerPolicies\3 Name REG_SZ Always On Description REG_SZ This scheme keeps the computer running so that it can be accessed from the network. Use this scheme if you do not have network wakeup hardware. Policies REG_BINARY 0100000002000000010000000000000002000000000000000000000000000000000000003232000004000000040000000000000000000000B00400008403000000000000080700000001646464640000
a06lp Posted December 2, 2004 Author Posted December 2, 2004 actually, scheme 3 is not REALLY "always on" - if on batteries, the settings are different.
turbomcp Posted December 2, 2004 Posted December 2, 2004 hey guysi think i got itwill update laterin general we need to make sure the regedit runs on default user(before login)cmdlines.txtwe had a custom power management scheme (no.6,you 1-5 default)add the custom to the default userand then change the current to 6will update laterby the way check powercfg.exe in system32
bek Posted December 2, 2004 Posted December 2, 2004 True "3" looks different if you are on a PC vs Laptop. I was going to write a script, but this POWERCFG.exe looks like it'll do what I want. cool! thanks for the tip.
a06lp Posted December 2, 2004 Author Posted December 2, 2004 hey guysi think i got itwill update laterin general we need to make sure the regedit runs on default user(before login)cmdlines.txtwe had a custom power management scheme (no.6,you 1-5 default)add the custom to the default userand then change the current to 6will update laterby the way check powercfg.exe in system32sounds like what i need... whatcha got?
turbomcp Posted December 3, 2004 Posted December 3, 2004 okim backwhat i wanted to disable was the fact that users get prompt for password when the computer gets into standby an disable hibernationso this is what i did:powercfg.exe /GLOBALPOWERFLAG off /option RESUMEPASSWORDpowercfg.exe /HIBERNATE offfor those of you that want to mess with the policy itself(the scheme)you can use the same util to make your own(or change the built-in one)youll need to do it in cmdlines calling the reg file for your predefined scheme(or custom)you can use powercfg to export import set actibe and all the other thingspretty cool
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now