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
Solved

Import Registry File Through Group Policy Logon Script?

Posted on 2004-03-30
9
3,358 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
  • 4
9 Comments
 
LVL 41

Accepted Solution

by:
stevenlewis earned 250 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 40

Assisted Solution

by:Fatal_Exception
Fatal_Exception earned 250 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remote Access to a Windows 2000 Computer 2 508
P2V Windows NT/2000 SP4 3 1,827
Just changed my 2000 Server DCs IP now what 3 405
How to install Windows 2000 network drivers 4 125
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…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

838 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