Solved

Deploy .reg files via group policy

Posted on 2014-11-27
11
1,303 Views
Last Modified: 2014-11-28
Hello Experts,

I need to deploy a .reg file via group policy. I've deployed many .msi files before but never .reg Help!!!
0
Comment
Question by:CNBELGIN
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 24

Expert Comment

by:NVIT
ID: 40469312
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 40469332
you can use logon scripts or you can drill down into the preferences\windows settings
http://blog.unidesk.com/gpos-set-custom-registry-entries-virtual-desktops-disabling-machine-password.
0
 

Author Comment

by:CNBELGIN
ID: 40469341
I'm running Active directory 2003 with a mix of XP and Win7 computers.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 54

Expert Comment

by:McKnife
ID: 40469707
If you want to deploy user settings (HKCU in regedit), use either a logon script or GPPs in the user policy section.
For all other registry hives, use startup scripts or GPPs in the computer policy section.
0
 
LVL 24

Assisted Solution

by:VB ITS
VB ITS earned 250 total points
ID: 40469875
In that case it might be easier to just use a batch file and have it run as a logon script using Group Policy.

Group Policy Preferences would be the most ideal method but you'll need to do a number of things to set it up for your environment beforehand (i.e. install RSAT on a Windows 7 machine for Group Policy Management and then ensure the Group Policy Client Side Extensions update is installed on all your XP machines)

Create your .reg file and store it on a share on your DC, e.g. \\server\netlogon\reg_file.reg
Open Notepad then type in regedit /s \\server\netlogon\reg_file.reg > File > Save As > in the Save As Type dropdown select All files (*.*) > name your logon script, i.e. addreg.bat > Save the file to the netlogon share on one of your DCs.

Then follow the steps here to add the above addreg.bat file as a logon script using Group Policy: http://technet.microsoft.com/en-us/library/cc781361%28v=ws.10%29.aspx
0
 
LVL 54

Assisted Solution

by:McKnife
McKnife earned 250 total points
ID: 40470111
@vb its
regedit.exe is not suitable for logon scripts as it requires elevation. reg.exe however does not.
0
 
LVL 24

Assisted Solution

by:VB ITS
VB ITS earned 250 total points
ID: 40470258
Yep good point McKnife. It'll work fine for XP but Windows 7 will require elevation so reg.exe is the way to go.

@CNBELGIN, please see this Microsoft article for the syntax for the reg.exe command: http://technet.microsoft.com/en-au/library/cc742162.aspx
0
 

Author Comment

by:CNBELGIN
ID: 40470384
Hello Guys,

Thanks for all your help.

In the example below, how would i utilize  reg.exe for win7?  Would i simply replace regedit.exe  /s with reg.exe /s ?

@echo off

Regedit.exe /s \\DC01\install\fix.reg

exit
0
 
LVL 54

Accepted Solution

by:
McKnife earned 250 total points
ID: 40470386
reg import \\DC01\install\fix.reg
0
 

Author Comment

by:CNBELGIN
ID: 40470388
Will this work for XP as well as win7?

reg import \\DC01\install\fix.reg
0
 
LVL 54

Expert Comment

by:McKnife
ID: 40470392
For both.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
User having issues with opening files Server 2012 5 34
exchange, active directory 4 44
GPupdate /sync 1 34
get bulk group members list in CSV 15 23
Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

815 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

11 Experts available now in Live!

Get 1:1 Help Now