Deploying reg file through group policy


I've been trying to deploy a reg file through group policy over the past few days but without any joy.  I've never had to do this before so any help would be much appreciated!  

I've followed the instructions on the below link.  However, I applied this under the Computer Configuration Node (rather than users), Policies, Windows Settings, Scripts (Startup/Shutdown).

In the Startup, I have put in the following:


The registry key is below.

Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\1]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\2]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\3]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\RestrictedProtocols\4]

I have also dropped the file into the Show Files location.

In the group policy I have Security Filtering enabled.  We have created computer security groups which have been assigned to the policy.  Authenticated users are also in the Security Filtering.

When I run the Group Policy Modeling Wizard this shows that the GPO is being applied.

Also, when we start up the clients PCs, Resultant Set of Policy is showing the policy as being applied.  However, when I got to regedit, it has not made the changes.

We are running Windows 7 PCs and Server 2008 domain controllers.

Am I missing something really simple?

Who is Participating?
Krzysztof PytkoConnect With a Mentor Senior Active Directory EngineerCommented:
I would suggest using Group Policy Preferences for that.

If you wish to deploy GPP to XP/2003 you need to first install Client Side Extension (CSE)
XP ->
2003 ->

If you are going to do it the way you are going it, I usually create a .cmd file and put the full command in that. I think that you would otherwise need to put regedit into the directory with the script.  I think that it's better to go with Krzysztof's suggestion, but it is more work to implement.

regedit /s \\domain.local\sysvol\.....\machine\startup\file.reg

Open in new window

I think you're blocked by UAC on Windows7 and 2008.
When you run regedit /s on Windows7 computer, without command prompt with elevated privilege, UAC ask you if you want to bring modifications to registry.
I think you have two choices:
- use a batch file to launch regedit /s \\server\share\file.reg
- use commands REG to modify registry (like this: reg add HKCU\software /v test /t REG_DWORD /d 00000002), either directly or in a batch file.
Using Regedit i have the UAC prompt, with Reg commands i haven't it.
You could too disable UAC for all users, but is it really secure?
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Do you prefer to do this with custom ADM template
asasupportAuthor Commented:
Thanks Krzysztof!!  I've managed to crack it!!

I did use the Group Policy Preferences.  Went into Computer Configuration>Preferences>Windows Settings>Registry>Right click>New>Registry Wizard

I saved the reg file I needed to deploy to a 32-bit client PC and then drilled down to the file location.

The key then appears in the group policy.

Drill down to the key location.  Right click on each entry, Properties, and Replace.

Once again excellent advice from Experts Exchange!


Krzysztof PytkoSenior Active Directory EngineerCommented:
I'm glad I could help :) You're welcome :)

asasupportAuthor Commented:
Many thanks Krzysztof!!  Using the Group Policy Preferences did the trick.  Being a numpty, I used the Registry Wizard.

Many thanks!!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.