General discussion

Locked

Registry settings through Group Policy?

By frankl27 ·
I need to make a registry change for every single machine in my domain, but it's not a setting currently covered in the GPO (that I can see).

I want to set the advanced power settings so that all the power settings are set to "NEVER" (The "PRESENTATION" power scheme).

Since I'm asking this, can anyone explain how I'd add any other custom registry keys using GPO?

I cannot figure out how to do this. Help!

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Joseph Moore In reply to Registry settings through ...

Ok, this took me a little while to find it. In the REgistry, go here:
HKEY_CURRENT_USER\Control Panel\PowerCfg

The entry CurrentPowerPolicy will equal a number of the co-oresponding power policy. The individual policies are at:
HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies
There is a numbered folder for each policy.

The Presentation power policy is # 10.

So, that is the policy you want to set CurrentPowerPolicy to.

Collapse -

by Joseph Moore In reply to

Now to do this, paste the following into a blank Notepad window:

REGEDIT4

[HKEY_CURRENT_USER\Control Panel\PowerCfg]
"CurrentPowerPolicy"="10"


Ok, save it as something like POWER.REG and put it in the SYSVOL directory on your Windows 2000 Active Directory domain controllers where your login scripts are located.

Ok, next, make a 1-line BAT file, call it POWER.BAT, that says this:

REGEDIT /S POWER.REG

Collapse -

by Joseph Moore In reply to

Ok now, in Group Policy, go to User Configuration\Windows Settings\Scripts\Logon and ADD the POWER.BAT file.

BTW, did I mention to save POWER.BAT with the logon scripts also? I meant to say that!

Anyway, once POWER.BAT is set as a logon script, just have your test user log in, and it "should" run and set the power to the setting you want.

hope this helps

Collapse -

by frankl27 In reply to

Poster rated this answer.

Collapse -

by frankl27 In reply to Registry settings through ...

To Joseph:

It looks as though I should do this just like I would with a normal login script, but simply tie it to a GPO. I hadn't thought it to be that simple. You're the man!

I am also assuming that I can override the setting by using a similiar script in a different GPO higher up. Is that a correct assumption? If so, then you've answered what I need to know and I'm ready to close this question. (That was fast!)

PS: The only other thing I cannot seem to figure out is how to tie this GPO to a group (ie: DOMAIN USERS)...doesn't seem possible...bummer.

Collapse -

by frankl27 In reply to Registry settings through ...

This question was closed by the author

Back to Windows Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums