Solved

Importing Registry through a Batch file.

Posted on 1998-07-09
5
4,253 Views
Last Modified: 2013-12-29
How can I import a registry file(.REG) within a batch file?

I have a registry entry that I need to enter onto all systems in our LAN, and need to have this run in the login script.
0
Comment
Question by:Jason_S
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:stevemiller
ID: 1717118
If you double-click on a REG file it will enter into the registry because Win95 has an association setup, so
simply specify in the login scripts that each workstation run the REG file from the path you specify in the script.

When a workstation logs in, the REG file will run from a network path you specify.

stevemiller
0
 
LVL 1

Expert Comment

by:PJansen
ID: 1717119
Jason,

P. Jansen again. In a batch file you can import the .reg file by using regedit.exe.
The command would be:

regedit /s xxxx.reg

The /s option makes the command silent, the user won't even know it's imported!

Good luck,

Peter
0
 
LVL 5

Expert Comment

by:stevemiller
ID: 1717120
very true, too-- he will still need to add that file then to his login script for the workstations to use.  Either way silent or not, the user cannot control it from happening.

stevemiller
0
 
LVL 1

Accepted Solution

by:
PJansen earned 10 total points
ID: 1717122
Jason,

P. Jansen again. In a batch file you can import the .reg file by using regedit.exe.
The command would be:
    regedit /s xxxx.reg
The /s option makes the command silent, the user won't even know it's imported!

Peter
0
 
LVL 1

Expert Comment

by:PJansen
ID: 1717124
Jason,

I hate to admit, but I really don't know... (snif)

If you want to do some manipulating of registry entries you should consider using Kixtart. It's a great login script processor to make mappings, read/write ini files, use Windows variables like Loginname, Computername, read or write registry keys, etc.
It's freeware (from Microsoft) and you van find it at http://netnet.net/~swilson/kix
Good luck

Peter Jansen
(P.Jansen@Triple-n.nl)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
is there an export feature for easy reading in task scheduler 9 108
Computer account cleanup 90 128
flash professional 3 21
Internet Explorer crashes on exit 4 30
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

837 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