Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4770
  • Last Modified:

Deploy .reg files via group policy

Hello Experts,

I need to deploy a .reg file via group policy. I've deployed many .msi files before but never .reg Help!!!
0
CNBELGIN
Asked:
CNBELGIN
  • 4
  • 3
  • 2
  • +2
4 Solutions
 
David Johnson, CD, MVPOwnerCommented:
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
 
CNBELGINAuthor Commented:
I'm running Active directory 2003 with a mix of XP and Win7 computers.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
McKnifeCommented:
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
 
VB ITSSpecialist ConsultantCommented:
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
 
McKnifeCommented:
@vb its
regedit.exe is not suitable for logon scripts as it requires elevation. reg.exe however does not.
0
 
VB ITSSpecialist ConsultantCommented:
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
 
CNBELGINAuthor Commented:
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
 
McKnifeCommented:
reg import \\DC01\install\fix.reg
0
 
CNBELGINAuthor Commented:
Will this work for XP as well as win7?

reg import \\DC01\install\fix.reg
0
 
McKnifeCommented:
For both.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now