Solved

add/modify registry file using group policy.

Posted on 2014-04-26
2
801 Views
Last Modified: 2014-04-26
I need to add a key in the HKCU branch of the PCs.  Can I do that using group policy?

If I create a bat file to call this reg file, do I just copy both the bat and the reg files to the "Show Files" window from the Logon properties and add the bat file by clicking Add in the Logon properties?  

Our DC uses Windows 2008.

Please advise in steps as I have never done this before.

Thanks in advance.
0
Comment
Question by:nav2567
2 Comments
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 40025316
Here is an idea of how to go about this:

http://blogs.technet.com/b/askds/archive/2007/08/14/deploying-custom-registry-changes-through-group-policy.aspx

Reprinted from the link above:
The Easier Way

We’re just making a simple registry value change here, so why not use REGEDIT.EXE in silent mode to set it? To do this we:

1. Export this registry value to a file called SciCalc.reg
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Calc]
    "layout"=dword:00000000

2. We create a new Group Policy object and link it to the OU we have configured for all the administrative users in the domain (ourselves and our super powerful colleagues).

3. We open it up and edit “User Configuration | Windows Settings | Scripts (Logon/Logoff).

4. Under the Logon node, we add our settings so that regedit.exe calls our SciCalc.reg file silently (with the /s switch):

You would need to create a reg file for this:

So the login script would load regedit.exe and silently add the info in your reg file


    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Calc]
    "layout"=dword:00000000
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 40025348
Or you can add it directly in group policy
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now