Jump to content

Power Scheme (trying again)


Recommended Posts

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"

Link to comment
Share on other sites


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. :)

Link to comment
Share on other sites

Did you run it ala?:

REG ADD "HKCU\Control Panel\PowerCfg" /v CurrentPowerPolicy /d 3 /f
REG ADD "HKU\.DEFAULT\Control Panel\PowerCfg" /v CurrentPowerPolicy /d 3 /f

i.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 0100000002000000010000000000000002000000000000000000000000000000000000003232000004000000

040000000000000000000000B00400008403000000000000080700000001646464640000

Link to comment
Share on other sites

hey guys

i think i got it

will update later

in general we need to make sure the regedit runs on default user(before login)

cmdlines.txt

we had a custom power management scheme (no.6,you 1-5 default)

add the custom to the default user

and then change the current to 6

will update later

by the way check powercfg.exe in system32

Link to comment
Share on other sites

hey guys

i think i got it

will update later

in general we need to make sure the regedit runs on default user(before login)

cmdlines.txt

we had a custom power management scheme (no.6,you 1-5 default)

add the custom to the default user

and then change the current to 6

will update later

by the way check powercfg.exe in system32

sounds like what i need... whatcha got? :whistle:

Link to comment
Share on other sites

ok

im back

what i wanted to disable was the fact that users get prompt for password when the computer gets into standby an disable hibernation

so this is what i did:

powercfg.exe /GLOBALPOWERFLAG off /option RESUMEPASSWORD

powercfg.exe /HIBERNATE off

for 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 things

pretty cool

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...