Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax for changing group policy registry keys

Status
Not open for further replies.

stylinm3

Programmer
Mar 16, 2005
1
US
Hello!!

I want to change the master browser on all computer in an OU using group policy. Here are the keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters

IsDomainMaster = FALSE
MaintainServerList = FALSE

How do I go about doing so?? I got to creating the GP and creating a key but don't know the syntax to modify these values within the key. Thanks!!!
 
You need to create a custom ADM and import it into your group policies Administrative Templates.

So I would do some research there to begin to understand it. It is a great place to start.

But below is an example of a custom ADM I made. My example is for a registry change in HKEY_CURRENT_USER. Hence the "Class User" at the top.

Yours should say "Class Machine"

Code:
CLASS USER
 
CATEGORY !!AdditionalSettings
   CATEGORY !!WMP_PARAMS

      KEYNAME "Software\Microsoft\MediaPlayer\Preferences"
 
         POLICY !!SET_NOPRIVACY
            EXPLAIN !!NOPRIVACY_HELP 
	    PART !!partname NUMERIC
	      MIN 0 MAX 1 DEFAULT 1
              VALUENAME "AcceptedPrivacyStatement"
            END PART
         END POLICY
 
   END CATEGORY
END CATEGORY 
[strings]
AdditionalSettings="Additional Settings"
WMP_PARAMS="Media Player 9"
SET_NOPRIVACY="Disable Privacy prompt for Windows Media Player 9"
NOPRIVACY_HELP="Windows Media Player 9 will prompt the user on initial execution for acceptance of the Privacy Agreement as well as default application settings. \n\n1 Will Disable the prompt."
Partname="Set Value to "

So basically as you can see it is pretty simple. Just simple string variables. In my example it provides a drop down box to select a value which allows it to be turned on and off. You don't have to do that, you can just set a value.

So with just a little poking around and some testing you can get it.

Good luck.

-Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top