Solved

add/modify registry file using group policy.

Posted on 2014-04-26
2
809 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 80

Expert Comment

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

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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…

828 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