Login Script 2000/98

  • Thread starter Thread starter Rita King
  • Start date Start date
R

Rita King

I know little about these things (as you will gather).
I have created a login script (login.bat - how original) which runs nicely
IF I run it from the Run command on the Win98 workstation ie
\\servername\netlogon\logon.bat
But it won't run automatically when user logs in.
It works fine on Win2000 Pro systems.
The content is:
NET USE * /delete /y
NET USE X: \\Big_brother\Big_Bro
NET USE Y: \\Stedman\DATA
NET USE Z: \\Scandocs\Archive
We have 2 servers - the PDC is Win2000 Server. The other is NT4 server. NT4
used to be the PDC but then we purchased Win2000 Server (if that's any
help).
I have placed the login script in \\servername\netlogon on the 2000 Server
AND when that didn't work in (on the NT server)
c:\winnt\system32\repl\import\scripts - but to no avail. I have pointed the
user profile to login.bat in Active Directory Users & Computers.
The lights are on but no one's home!!
Any ideas?
 
Rita King said:
I know little about these things (as you will gather).
I have created a login script (login.bat - how original) which runs nicely
IF I run it from the Run command on the Win98 workstation ie
\\servername\netlogon\logon.bat
But it won't run automatically when user logs in.
It works fine on Win2000 Pro systems.
The content is:
NET USE * /delete /y
NET USE X: \\Big_brother\Big_Bro
NET USE Y: \\Stedman\DATA
NET USE Z: \\Scandocs\Archive
We have 2 servers - the PDC is Win2000 Server. The other is NT4 server. NT4
used to be the PDC but then we purchased Win2000 Server (if that's any
help).
I have placed the login script in \\servername\netlogon on the 2000 Server
AND when that didn't work in (on the NT server)
c:\winnt\system32\repl\import\scripts - but to no avail. I have pointed the
user profile to login.bat in Active Directory Users & Computers.
The lights are on but no one's home!!
Any ideas?

You must specify the name of the logon script (logon.bat), without
any path, in each user's account profile on your domain controller.
You must also instruct the Win98 PCs to get validated by your
domain.

If this is all correct and your script still fails to execute then you
may be up against one of these cases where Win9x PCs ignore
the domain logon script, for reasons unknown. I have seen this
several times, even on sites where some Win9x machines worked
and some did not.

Rather than spending a lot of time trying to solve the problem,
walk around it by placing this batch file into

c:\windows\start menu\programs\startup

on the problem Win98 PCs.

@echo off
call \\YourServer\netlogon\logon.bat

By doing this you force the logon script to execute yet you retain
central control over the contents of the logon script.
 
Thanks,
Not being one to give up too quickly, I have looked again at all settings
and now discover that the logon.bat file IS running but.. after running the
line
NET USE * /delete /y
and seeing the response "the command was completed successfully", the next
message is Batch File Missing and the command prompt returns to c:\windows -
and of course my NET USE x:\\servername\ commands are not executed.
Any further ideas?
 
Rita King said:
Thanks,
Not being one to give up too quickly, I have looked again at all settings
and now discover that the logon.bat file IS running but.. after running the
line
NET USE * /delete /y
and seeing the response "the command was completed successfully", the next
message is Batch File Missing and the command prompt returns to c:\windows -
and of course my NET USE x:\\servername\ commands are not executed.
Any further ideas?

Under Win9x, drive Z: is mapped to the "netlogon" share
during the logon process. Your command pulls the rug
from under the feet of logon.bat . . .
 
Understood. Thanks "Pegasus"

Pegasus (MVP) said:
Under Win9x, drive Z: is mapped to the "netlogon" share
during the logon process. Your command pulls the rug
from under the feet of logon.bat . . .
 
Back
Top