Solved

Vista workstations not automatically reconnecting to server share on startup

Posted on 2010-09-06
21
465 Views
Last Modified: 2012-05-10
I have a small network with 1 server (WS2003) and 5 workstations (Vista Ultimate) and a Linksys BEFSR81 Router (DHCP for workstations).  The Router has passed the Vista diagnostics test as meeting all requirements.  My problem seems to have started after upgrading all workstations to Vista.

The Problem:  Occasionally and rather frequently when a workstation starts up in the morning, the Shared folder on the Server is not automatically reconnected. Manually trying to reconnect will have Vista diagnose the need to establish a new IP with the Modem.   Frequently, a user must detach the share and reconnect manually.  Doing that frequently is problematic, but worse than that it requires an administrator password and when I am not available, the user cannot proceed.

It seems to me that whatever the modem thought was the workstation’s IP is no longer valid (perhaps due to a power glitch that caused the modem to reset?).  Yet, most always when Vista diagnoses the connection, and tells the Modem to assign a new IP, the connection is re-established.  This rarely happened with XP.

I would like to know if there is a software option or setting option that will resolve this.  I have considered giving all workstations a Static IP to see if that solves what (I’m guessing) to be a DHCP issue not being automatically attempted and reset by Vista.  

Any suggestions would be greatly appreciated….
0
Comment
Question by:FrankBabz
  • 12
  • 9
21 Comments
 
LVL 6

Expert Comment

by:sagiamar
ID: 33611991
Save the following batch file to the domain controller's NETLOGON share as logon.bat:

@echo off
net use * /delete /yes
net use x: \\file_server_name\shared_directory_name

Active Directory Users and Computers > Users > Double click user > Profile
Enter "logon.bat" (no quotes) in the "Logon script" box and click OK
Login from workstation as user modified in step 2. Drive x: should appear in My Computer.
0
 

Author Comment

by:FrankBabz
ID: 33612281
Wow!    Thanks for the guidance....

I will be glad to try your suggestion, but you are taking me into a new learning curve territory, so please bear with me as I ask these questions:

1) I presume "logon.bat" will run whenever a User logs on to any workstation.  Correct?

2) Please tell me what  "net use * /delete /yes"  does?
.
3) I presume I must do Step 2 for every user.   Correct?

4) Please tell me how this fixes (what I think) is a Vista/Modem IP (out-of-sync) problem.  Would it somehow force the modem to issue the workstation a new IP?
0
 

Author Comment

by:FrankBabz
ID: 33612991
I am trying my best to research this myself, and I am having a problem with "net use /delete /yes"
The /delete cancels all network connectios, and /yes is a mystery.   Will /delete also cancel the shared Dymo printer that is USB attached to the server?  Was /yes meant to be persistent:yes ?

Thanks for your help with my questions...
0
 
LVL 6

Expert Comment

by:sagiamar
ID: 33613034
the userlogon.bat will run only on user that you will apply the script on the AD.

the net use * /delete /yes will clean all the maps you have ... you can change the * to drive leter.

basically the script delete the network drive and reconnect every logon

you dont have to do the "delete" command you can make logon script only with net use x: \\file_server_name\shared_directory_name

try here for more help about this
http://technet.microsoft.com/en-us/library/cc779490(WS.10).aspx


0
 

Author Comment

by:FrankBabz
ID: 33613169
My server name is TED
The name of my server share is R  (this is a folder on my server D drive)
On my workstation I want R: to point to \\TED\R

My Logo.bat is:
@echo off
net use R: \\TED\R

When I logged on to Workstation there was no R:  
(Normall I would see R(\\TED) (R:) or r(\\TED) (R:) after manually mapping the share)

Sorry I need so much help.

 
0
 

Author Comment

by:FrankBabz
ID: 33613183
I meant to say Logon.bat
0
 
LVL 6

Expert Comment

by:sagiamar
ID: 33613201
go to start > run >

make \\ted
navigate to the D drive and to the share folder.... copy the path from the address bar and paste in the logon.bat


net use r: \\ted\d\share folder


try to run the in CMD and see if you get any error or seccessful messege.
0
 

Author Comment

by:FrankBabz
ID: 33613296
I entered

net use r: \\ted\D\Ster   and \\ted\D:\Ster     and \\ted\R
For all of 3 above same error 85  The local device name is already in use.

Is this because R is being used on a 2nd work station?  I have need to have same user logged on to more than one work station at the same time.  Also, in this testing I am logged on to the server, and the workstation(s)
0
 
LVL 6

Expert Comment

by:sagiamar
ID: 33613306
start >run> cmd > and net use > press enter

did you get any map list ?
0
 

Author Comment

by:FrankBabz
ID: 33613357
I entered:
net use

I got:
New connections will be remembered
Status        Local       Remote      Network
------------------------------------------------------------------------
Disconnected R:        \\TED\R      Microsoft Windows network
The command completed successfully
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 6

Expert Comment

by:sagiamar
ID: 33613390
ok try to run from CMD net use r: /delete /yes

and now net use again if you got nothing on r then try net use r: \\ted\"share dir"


you can also try to use another letter for the map....
0
 

Author Comment

by:FrankBabz
ID: 33613439
I entered:
>net use r: /delete /yes
R: was deleted successfully
>net use
New connections will be remembered
There are no entries in the list
>net use r: \\TED\R
The command completed successfully

The R: is a drive used by all workstations, and there is a software program closely tied to having this R drive.
As administrator I also have a Z: drive that gives me access to the entire Server "D" drive
0
 
LVL 6

Expert Comment

by:sagiamar
ID: 33613446
>net use r: \\TED\R
The command completed successfully

this is work now ?
0
 

Author Comment

by:FrankBabz
ID: 33613474
>net use
New connections will be remembered
Status        Local       Remote      Network
------------------------------------------------------------------------
OK             R:           \\TED\R      Microsoft..........
The command completed successfully

I went to workstation and logged on, but I do not see the R: drive
My Logon.bat is:
@echo off
net use R: \\TED\R
0
 
LVL 6

Expert Comment

by:sagiamar
ID: 33613493
try to run the net use R: \\TED\R manuelly on the workstation from cmd
can you see the R ??
0
 

Author Comment

by:FrankBabz
ID: 33613513
Yes.  At the workstation after entering net use R: \\TED\R manually

I immediately saw the R: drive appear in "Computer" folder:  R (\\TED) (R:)
0
 
LVL 6

Expert Comment

by:sagiamar
ID: 33613519
ok now make a new logon.bat on the workstation with the command  "net use R: \\TED\R"

put the file in the startup folder and restart the workstation... still get the map ?
0
 

Author Comment

by:FrankBabz
ID: 33613652
I copied my Logon.bat file from the Server to the workstation "All Users - Startup" folder.
I just had to see if it was corrupted.  
And, as you will see below, it was working just fine, just not making the connection.

At the workstation:
I logged OFF then ON, and Viola!   we have  R (\\TED) (R:)
To be certain, I did a restart on the workstation and tried again, and we have R (\\TED) (R:)

I removed Logon.bat from the server scripts folder and cleared the User's profile.
To be sure: I powered off the server, and the workstation, and restarted both
Logged in to workstation, and we still have R (\\TED) (R:)

I am very pleased with your follow through, and the assistance you have provided.
AND...I will certainly award you full credit for your help.

Now, I will fix all the office workstations, and hope this cures the Vista/modem IP problem I have been having.

Do you think it will?   If not do you think inserting.... net use R: /delete /yes .... is something to try?
0
 
LVL 6

Accepted Solution

by:
sagiamar earned 500 total points
ID: 33613678
I think this will solve your problem... If not.. We still here just for that (:
0
 

Author Closing Comment

by:FrankBabz
ID: 33613696
Your support was more than outstanding, and very much appreciated.

In a month or two, I'll update you to advise if the modem/IP issue has been resolved.

Best wishes.....   Frank
0
 

Author Comment

by:FrankBabz
ID: 33619908
What works at home does not work at the office.
Both systems are identical except the office uses a different router the *BEFSR81 by Linksys"  (home uses Cisco E3000)

At the office, >net set R: /delete /yes will cause the failure, at home, it does not cause a failure.

When office connection fails the following is true:

1) network diagnostics will offer to reset the IP and this always works.
2) net set R: \\TED\R  - returns Network not found
3) ipconfig /reset - returns Network not found
4) ipconfig /renew - returns Network not found

Only option 1 works once there is a failure, and this requires Admin password.

Thanks for your assistance and any thoughts you may have.

Frank
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now