Solved

Importing Registry through a Batch file.

Posted on 1998-07-09
5
4,221 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now