Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate a Registry Import?!?

Status
Not open for further replies.

Floyd10

IS-IT--Management
Jan 11, 2002
11
US
I am trying to roll out a script that needs to import a registry file I have into the users computer running the script. I need to know how to make the registry entry import without me having to click "yes" to "Do you want to import...".

thanks.
 
Floyd,

The format has to read:
Windows Registry Editor Version 5.0


You can run it with a /s switch:
regedit /s %path%\whatever.reg

Or go Tools>FolderOptions>FileTypes, scroll to Registration Entries, click the advanced button. Select Merge, click Edit and add /s after the regedit.exe entry, like this:
regedit.exe /s "%1"

reghakr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top