Discussion Locked

Registry settings through Group Policy?

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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!

6 replies

by joseph moore

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.

by joseph moore

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

by joseph moore

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

by frankl27

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.

This discussion is closed to new replies.