Solved

Importing Registry through a Batch file.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

920 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

12 Experts available now in Live!

Get 1:1 Help Now