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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add reg lines to Windows 98 machines

Status
Not open for further replies.

jjjthird

Technical User
May 15, 2002
56
US
I am interested in learning a way of adding three lines in a reg key just for win 98 users when they log in. This is a one time deal, and I know there must be a way of adding a few lines to the login script. But I am a little gree to Novell, and this will earn me a few brownie points if I can come up with an idea vs the admin manually doing 300-400 machines.

Thanks for any advice or pointing me in the right direction ( just not out the door) :)

Joe
 
You can create a batch file to add in the reg keys. I think if you use the /s switch with regedit it does it silently so users wont even know.

Only way i can think of making sure it happens only once is to get the batch file to copy over a file to indicate that it has been done. Then you can get the batch file to check for the file, and only add the reg keys if it doesnt exist.
 
To add to the previous post, if you add a line like the following to your container login script ensuring the location and name of the batch file is correct (also include the preceeding hash #):

#Z:\ADDREG.BAT

Then your batch file looks something like, again ensuring that the name and location of the registry file is correct also:

@ECHO OFF
REGEDIT /S Z:\LINES.REG



-----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
following from last guy

use # in login script if you want script to pause while your batchfile is running, or @ for script to continue executing while batchfile is running.

@z:\xxxx.bat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top