Login script does not work

A

Adnan Mirza

I have a Windows NT4 server, and window 2000 workstations
on my network. The problem that I have is my logon script
fails to run for some of my users and then it runs we
they relogin.

I have logon.cmd in the netlogon share on the server, it
just maps shares. I can click on it from any machine and
it will run and map the shares just fine.

I could understand it if it did not work at all, but when
it works some of the time for some of the users... It
does not make sense.

Any one have any ideas?
 
M

Mirza Adnan Baig

Here is login script but this script run fine all PC's
except some PC's


net use u: \\Server\InfoTech /persistent:no /yes
net use i: \\Server\afs-app /persistent:no /yes
rem net use g: \\Server\Res_Data /persistent:no /yes
net use y: \\Server\netlogon /persistent:no /yes
call y:\common.bat
 
P

Pegasus \(MVP\)

You need to find out if the login script runs at all on
the problem machines. This involves a certain amount
of trouble-shooting. I recommend you modify the login
script as below, then ask your users to take notes.

@ech off
if /i not %Computername%==PC5 goto Label1
echo.
echo %date% %time% Start of diagnostic routine.
echo Please make a note of the date & time when you see this message.
echo.
pause

:Label1
net use u: \\Server\InfoTech /persistent:no /yes
net use i: \\Server\afs-app /persistent:no /yes
rem net use g: \\Server\Res_Data /persistent:no /yes
net use y: \\Server\netlogon /persistent:no /yes

if /i not %Computername%==PC5 goto Label2
echo.
echo End of diagnostic.
echo Please mark it on your log sheet when you see this message.
echo.
pause

:Label2
call y:\common.bat
 

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