Jump to content

Recommended Posts

Posted

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"


Posted

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

Posted

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

Posted

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

Posted

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

Posted
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:

Posted

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

:)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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