Solved

Run .reg file with login via AD

Posted on 2014-11-27
8
211 Views
Last Modified: 2014-12-26
I need to push af .reg import file to user i AD. I need to do it like a login.bat file.

How to do?
0
Comment
Question by:AC
  • 3
  • 2
8 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 40468575
One option is to do that with registry preference items using the Group Policy Management Console:
Registry Extension
http://technet.microsoft.com/en-us/library/cc771589.aspx

If you want to do it with a .reg file after all, you can use the command line tool "reg.exe" to import the reg file.
Save the reg file in the netlogon folder, and use this line in your batch:
reg.exe import "%logonserver%\netlogon\TheRegistryFile.reg

Open in new window

0
 

Author Comment

by:AC
ID: 40468591
ok thanks... so i need to put the file i wish to import i the netlogon folder?
0
 
LVL 84

Expert Comment

by:oBdA
ID: 40468775
Not necessarily, it could be anywhere where your users have access to it, but since you're planning to run it as part of a logon script, the netlogon folder is a logical choice.
Just noticed that in the the command above, the closing double quote went AWOL; it should of course have been
reg.exe import "%logonserver%\netlogon\TheRegistryFile.reg"

Open in new window

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:AC
ID: 40468875
This is only merge right? it is not overwrithing the hole file?
0
 
LVL 84

Expert Comment

by:oBdA
ID: 40468919
What do you mean with "this is only merge"? The "reg.exe import ..." command has the exact same result as double-clicking the reg file and clicking "yes" on regedit's dialog box, or starting regedit.exe and using the "File > Import..." function.
0
 
LVL 54

Expert Comment

by:McKnife
ID: 40469715
Yes, it's just a merge. Be aware that logon scripts run in the users' security context, they will not be able to change anything below the HKLM hive, for example.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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 configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

821 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