?
Solved

Importing Registry through a Batch file.

Posted on 1998-07-09
5
Medium Priority
?
4,283 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
[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
  • 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 40 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

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