Issues mapping network drive via login script

G

Guest

I have a couple of computers that are having issues mapping their network
drives. I have login scripts assigned to the domain users via the Profile
tab of their AD account. For some reason, when a couple of the users log in,
I don't think that the script runs, or if it does, the drives just don't map.
I've looked into DNS issues and such, but can't find anything out of the
ordinary. Everything looks the same, and all other users' login scripts
appear to be working accordingly. One of the users apparently had to shut
the PC off completely and reboot and then it mapped correctly. One thing to
note - you can run the script manually after logging in and it will work just
fine (by going to \\domaincontroller\netlogon and executing it from there) -
user didn't know how to do this, thus they shut it down.

Does anyone know of any issues that could prevent the login scripts from
working properly upon logon?

Thanks in advance!

Sara
 
G

Guest

At that particular site, no. But, we have a total of 4. Replication is
working correctly between the DCs. The clients look to their local DC for
authentication, etc.
 
P

Pegasus \(MVP\)

Saral6978 said:
I have a couple of computers that are having issues mapping their network
drives. I have login scripts assigned to the domain users via the Profile
tab of their AD account. For some reason, when a couple of the users log in,
I don't think that the script runs, or if it does, the drives just don't map.
I've looked into DNS issues and such, but can't find anything out of the
ordinary. Everything looks the same, and all other users' login scripts
appear to be working accordingly. One of the users apparently had to shut
the PC off completely and reboot and then it mapped correctly. One thing to
note - you can run the script manually after logging in and it will work just
fine (by going to \\domaincontroller\netlogon and executing it from there) -
user didn't know how to do this, thus they shut it down.

Does anyone know of any issues that could prevent the login scripts from
working properly upon logon?

Thanks in advance!

Sara

You write "I don't think that the script runs". You must nail this one
down as your first step by modifying your script like so:
@echo off
echo This is the login script
echo %date% %time% %UserName% >> c:\Login.txt
ping localhost -n 5
{Put your own lines of code here}

This will have two effects:
- The logon process will generate a screen message and
pause for a moment.
- It will create a log entry in c:\Login.txt.
 
G

Guest

I am having the same issue also , 1 out of the 30 PC's that run a script will
not connect to its mapped drives.
I watch the script run when the PC is booted up but when its finished the
drives do not connect, a reboot usually fixes the problem otherwis ei have
to remapp the drives every morning( it actually worked right yesterday for
the first time in a week) and i hadnt made any changes to anything.
very confused
thanks
scott
 
G

Guest

Glad I'm not the only one! :) I'm actually going to start working on this
again tonight to see what I can figure out. I had to put this on hold for a
bit to work on some other things, but the user is still complaining of the
drives not mapping unless she shuts down and reboots again, or runs the
script manually. So, I'll finally get to do some testing and to confirm that
indeed the script is executing properly. There are a few things that I will
be looking at that could be causing some issues (network related). I'll let
you know if I find a solution!

Sara
 
G

Guest

thanks that would be great
today it mapped 2 out of the 5 drives, so who knows what tommorow will bring.

thanks
scott
 
G

Guest

Okay, this might be a dumb suggestion, but I've overlooked this in the past:
The computer that is not mapping the drives - does it have any of those
removable media slots or anything that is already using the drive letter that
is attempting to be mapped? If the drive letter is being used already, then
the script will not be able to map the network drive assigned to that same
letter. I've had to go in and change the removable media slots, or
CD/DVDROMs in Disk Management so that my script could actually map the drive
successfully...I don't know, just a suggestion in case you might have
overlooked it... :)

I only suggest this since you mentioned 2 of the 5 mapped okay...my user
gets zero mapped drives.

Sara
 
G

Guest

Scott,

Please ignore my above post - I forgot that you mentioned sometimes all the
drives work and sometimes not...I would delete it if I could, but oh well! :)

If it sometimes works, then there obviously is no drive letter conflicts.

Sorry!

Sara
 
G

Guest

yeah i still have no idea, sometimes it maps all of them sometimes half of
them sometimes none of them ( but thatthe rarest of them all)

im going to end up putting a .bat file on the desktop so he can manually run
the scripts if they dont all connect cause they dont "understand" how to map
a drive after me showing them 4 or 5 times now.
 
G

Guest

Yep, I have to do that too! :) hehe

Scott said:
yeah i still have no idea, sometimes it maps all of them sometimes half of
them sometimes none of them ( but thatthe rarest of them all)

im going to end up putting a .bat file on the desktop so he can manually run
the scripts if they dont all connect cause they dont "understand" how to map
a drive after me showing them 4 or 5 times now.
 

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