Login Script Asking for Password

Hi,

We've had sporadic issues with our login scripts.  The script simply uses net use in order to map to some network shares.  When our users connect from home, they use Cisco VPN and then run the mapping script in order to gain access to some of their files stored on the network.  Some of the users are prompted for their username and password when attempting to run this script.  When they put in their normal usernames and passwords, they get an access denied error.  I've gone over the script tons of times and still can't figure out what the issue could be.  We have a Windows Server 2003 domain.  Here is a copy of the generic login script (with domain specific names removed).

NET TIME \\(File Server Name)/SET /YES
net use t: /delete
net use t: \\(File Server Name)\(Shared Directory 1) /persistent:no
net use s: /delete
net use s: \\(File Server Name)\(Shared Directory 2) /persistent:no
if exist del c:\temp\*.tmp

%windir%\system32\mobsync.exe /logon

Any help would be greatly appreciated.

Thanks
asisson_2000Asked:
Who is Participating?
 
asisson_2000Connect With a Mentor Author Commented:
This ended up being a synchronization issue.  I noticed that if I ran this script twice, it would work.  Just to test it, I moved the "%windir%\system32\mobsync.exe /logon" line to be at the beginning of the script.  It worked just fine after that.
0
 
Steve KnightIT ConsultancyCommented:
When they are remote can they resolve the servername?

Quite often with VPN setups the DNS remotely is left to local DNS on the user's network so without entries in hosts tables or other methods the name cannot be resolved, or worse using friendly DNS systems like OpenDNS or other ISP's with content blocking etc. then an unresolved name returns the IP of a server giving them a friendly error mesage...

Steve
0
 
asisson_2000Author Commented:
Good idea.  Unfortunately the file server's ip address is listed in the hosts file and once connected via VPN, it is pingable by name.
0
 
Steve KnightIT ConsultancyCommented:
ok, no problem was just worth throwing in since I've seen that before.  Am working on other things at the moment but sure someone else will offer better advice for you shortly.

Steve
0
 
Steve KnightIT ConsultancyCommented:
fair enough, sorry couldnt put any more thought into it earlier...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.