Solved

Run .reg file with login via AD

Posted on 2014-11-27
8
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 85

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 85

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

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 55

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
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 …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

691 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