Importing a registry file into windows 98 doesn't work but in windows 2000 does

L

Luke Thompson

We have written a login script for our users which imports a .reg file
into the computers registry. The problem though, is that it will not
work on windows 98 machines. However it works in windows 2000.

The login script is as follows and runs everytime a user logs on:-

-------------------------------------------------------------------------------

NET USE I: /home
net use l: \\admin-server\alice
net use r: \\dellone\applications
net use u: \\dellone\hand-in-work
net use v: \\dellone\longcroft
net use y: \\dellone\chemset
\\ADMIN-SERVER\INTERCHK\W95inst\Setup -INL -A
net time \\admin-server

regedit /s \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\run.reg
regedit /s \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\fpage.reg
regedit /s \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\word.reg
regedit /s \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\excel.reg
regedit /s \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\powerpoint.reg
regedit /s \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\access.reg


-------------------------------------------------------------------------------


Does anyone know what we have done wrong for there to be an error
message whenever a user logs onto win98 machines?

Is there a way to tell the windows 98 machines to ingnore the
'regedit' lines?

Is there a way to change it so that it will work for both windows98
and windows 2000 machines?

Thank you
 
M

Mark V

In said:
We have written a login script for our users which imports a .reg
file into the computers registry. The problem though, is that it
will not work on windows 98 machines. However it works in windows
2000.

The login script is as follows and runs everytime a user logs on:-

-------------------------------------------------------------------
------------

NET USE I: /home
net use l: \\admin-server\alice
net use r: \\dellone\applications
net use u: \\dellone\hand-in-work
net use v: \\dellone\longcroft
net use y: \\dellone\chemset
\\ADMIN-SERVER\INTERCHK\W95inst\Setup -INL -A
net time \\admin-server

regedit /s
\\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\run.reg
regedit /s
\\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\fpage.reg
regedit /s
\\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\word.reg
regedit /s
\\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\excel.reg
regedit /s
\\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\powerpoint.re
g regedit /s
\\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\access.reg


-------------------------------------------------------------------
------------


Does anyone know what we have done wrong for there to be an error
message whenever a user logs onto win98 machines?

Is there a way to tell the windows 98 machines to ingnore the
'regedit' lines?

Is there a way to change it so that it will work for both
windows98 and windows 2000 machines?

My first thought is that your .REG file is not in REGEDIT4 format.
Check the first line in the file.
 
G

Guest

|In microsoft.public.win2000.registry Luke Thompson wrote:
|
|> We have written a login script for our users which imports a .reg
|> file into the computers registry. The problem though, is that it
|> will not work on windows 98 machines. However it works in windows
|> 2000.
|>
|> The login script is as follows and runs everytime a user logs on:-
|>
|> -------------------------------------------------------------------
|> ------------
|>
|> NET USE I: /home
|> net use l: \\admin-server\alice
|> net use r: \\dellone\applications
|> net use u: \\dellone\hand-in-work
|> net use v: \\dellone\longcroft
|> net use y: \\dellone\chemset
|> \\ADMIN-SERVER\INTERCHK\W95inst\Setup -INL -A
|> net time \\admin-server
|>
|> regedit /s
|> \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\run.reg
|> regedit /s
|> \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\fpage.reg
|> regedit /s
|> \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\word.reg
|> regedit /s
|> \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\excel.reg
|> regedit /s
|> \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\powerpoint.re
|> g regedit /s
|> \\Admin-server\SYSVOL\longcroft.ac.uk\scripts\regedit\access.reg
|>
|>
|> -------------------------------------------------------------------
|> ------------
|>
|>
|> Does anyone know what we have done wrong for there to be an error
|> message whenever a user logs onto win98 machines?
|>
|> Is there a way to tell the windows 98 machines to ingnore the
|> 'regedit' lines?
|>
|> Is there a way to change it so that it will work for both
|> windows98 and windows 2000 machines?
|
|My first thought is that your .REG file is not in REGEDIT4 format.
|Check the first line in the file.

To clarify a bit further: the first line of the .reg file may look like:
Windows Registry Editor Version 5.00
(this will be in Unicode, so if you look at it with something other than
notepad, it may look like there are spaces between each letter)

If this is the case, this reg file will only work in Win2k or newer.

If you create a reg file by exporting in regedit in Win2k/later, under
"Save as type", select REGEDIT4 instead of "Registration Files"
 
G

Guest

Without getting too crazy, what is (or isn't) Unicode? I've seen an app
(4NT - cmd.exe replacement) which comes in a Unicode and non-Unicode
version.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top