Discussion Locked

running a .reg file

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I have a winnt4.0 platform.. With win95&98 clients.I have a registry script that I wrote to change the registry on certain w95&98 clients.I wrote it on a win95 computer and copied it over to the netlogon share on the pdc & bdc). I called it setup.reg. I put this in their Logon Script Name in there User Environment Profile. So that when they logon it should read this file.It does not read it at all. I entered it as the following:
regedit /s setup.reg.. I did try just regedit w/out the switch. If I run it from the run command on a w/95&98 machine it works fine.I do have a logon.bat file that I run from the users Logon Script Name and this works fine. Is there a reason that it does not work. Any help would be appreciated.. Thanks in advance..

5 replies

by joncr

I think it probably cant find the reg file. Its probably looking the same location as the regedit.exe file.

A much cleaner way that I use is to temporarily map a drive with a letter thats not used to the netlogon share. for example

net use x: \\server\netlogon
regedit /s x:setup.reg
net use x: /d

The first line maps the drive to x:
the second runs the file and the third disconnects the x: drive share so it can be reused.

by poo_music

Do use the J Scipt or the WSH script to change your registry where the function built in in Windows 9x. You wont encounter any problem. I tried it before. Cheers!

This discussion is closed to new replies.