Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Import Registry File Through Group Policy Logon Script?

Posted on 2004-03-30
9
Medium Priority
?
3,370 Views
Last Modified: 2010-04-13
I want to import a registry key from a file I will call proxy.reg to the registry using a Group Policy logon script. This script will import the proxy.reg file to the registry as the user logs on. The proxy.reg file will be located in the c:\temp directory on the PC the user is logging onto. In Group Policy under the Windows Settings, Logon Scripts what do I type in script box to the get the proxy.reg file to import into the registry as the user logs on? I am unfamilar with logon scripts, and I need help creating this logon script. Any help will be greatly appreciated!!
0
Comment
Question by:jg20
[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
  • 4
9 Comments
 
LVL 41

Accepted Solution

by:
stevenlewis earned 1000 total points
ID: 10720250
Create a .reg file with the setting you want. In regedit, you can browse to the key and use export. It should look something like this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"AdaptecDirectCD"="C:\\Program Files\\Roxio\\Easy CD Creator 5\\DirectCD\\DirectCD.exe"

Then, add the following to your your login script:

regedit /s regfile.reg

Where regfile.reg is the .reg file you created. Then, when the login script runs, it will add the entry(s) into the client's registry.




0
 

Author Comment

by:jg20
ID: 10720303
So do I just type in "regedit /s regfile.reg" into the Group Policy Logon script area in Group Policy, or do I need to create a text file with this line in it, and then just reference the text file location in the Logon script area?

Thanks!!
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 10720407
This might help you out...

HOW TO: Add, Modify, or Delete Registry Subkeys and Values by Using a Registration Entries (.reg) File

http://support.microsoft.com/default.aspx?scid=kb;EN-US;310516

You can also use Group Policy or System Policy to distribute registry changes across your network. For additional information, visit the following Microsoft Web site:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kmag01/html/DistributingRegistryChanges.asp

FE
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 40

Assisted Solution

by:Fatal_Exception
Fatal_Exception earned 1000 total points
ID: 10720424
Baasically, you will be 'referencing' the file within the GPO...  I guess that is what you were really asking..  sorry, should have read the entire thread first, or perhaps just gone to bed, eh..  :)

FE
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11486707
I think a split is in order...  if Steven agrees...
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11598853
Thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Whoever said that “a picture is worth one thousand words” observed a fact that can dramatically affect your marketing success. Most people tend to learn visually, so many publishers commonly acknowledge the effectiveness of visual learning by using…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

721 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