Solved

Disconnected Network Drive problem

Posted on 2006-11-06
8
2,286 Views
Last Modified: 2008-02-20
Hi folks

I've looked through lots of solutions for this problem and tried several but none seem to have worked.

Setup is a single SBS2003 server with XP Pro SP2 clients

If I run "net use S: \\servername\sharename" from any of our clients, they will all show drive S: correctly in the "My Computer" window.
With the same command in a logon script.bat for client machines, all clients' "My Computer" windows show the share as a "Disconnected Network Drive" immediately on logging on.  Double clicking the disconnected drive icon accesses the share correctly without any delay.

I have disabled the timeout on the server & removed old Network folders from all user profiles on the clients' registries, then let them be recreated & populated both to no avail.
Repopulated, the Network\S folder for the DefaultUser shows:
Connectiontype = 1
DeferFlags = 4
Provider: Microsoft Windows Network
ProviderType = 131072
RemotePath = correctly reported
UserName = \networkname\pcname$

Interestingly, the Network folder for CurrentUser is not recreated.

Can you help, please?
0
Comment
Question by:morse57
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 21

Assisted Solution

by:suppsaws
suppsaws earned 200 total points
ID: 17888411
Hi morse57,
> With the same command in a logon script.bat
 where did you place that logonscript?
make sure it's in the SBS_LOGIN_SCRIPT.bat file, this is located in \\servername\SYSVOL\yourdomain.local\scripts

the script should be like this:
net use g: \\servername\sharename /yes

make sure the drive letters are not used by any other drives like SDcard slots etc

Cheers!
0
 
LVL 3

Expert Comment

by:Dinga84
ID: 17888601
SBS_LOGIN_SCRIPT.bat  is more easily found under \\servername\netlogon
0
 
LVL 2

Author Comment

by:morse57
ID: 17890805
Thanks

OK, working backwards from where I was, I've moved the MapNetworkDrive.bat from the SBS Client Computer\Computer Configuration\Windows Settings\Scripts\Logon setting of Group Policies to the SBS Client Computer\User Configuration\Windows Settings\Scripts\Logon setting, where it works fine.

The question I'm left with is, why does it connect but state it's disconnected for the computer setting in GP and not for the user setting.  Sorry but I like to understand these things to avoid future problems.

Cheers
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 74

Accepted Solution

by:
Jeffrey Kane - TechSoEasy earned 300 total points
ID: 17895178
First, you should not be editing the default GPOs.  That's never a good idea.  Instead, if you want to create a new policy, create a new GPO instead.  This way you don't break any of the SBS's defaults which you know to be working correctly.

That being said... you don't configure mapped drives with a GPO.  Instead, you need to modify the SBS_LOGIN_SCRIPT.bat file which suppsaws and Dinga84 have mentioned.  (found in \\servername\netlogon)

This file has a single line by default, which looks something like this:

\\SERVERNAME\Clients\Setup\setup.exe /s SERVERNAME

You can replace your current SBS_LOGIN_SCRIPT.bat with this code (after backing up the current one just in case):

@echo off
rem   ==================================================
rem
rem   Title: Login Script
rem   Author: Your Name
rem   Date: Self-explanatory
rem   Description: Network Login Script
rem
rem ==================================================

:SBS_SETUP
rem Default sbs2k3 client setup
\\SERVERNAME\Clients\Setup\setup.exe /s SERVERNAME

:MAPDRIVES
rem Connect network drives
if exist f:\*.* net use f: /d
net use f: \\ServerName\ShareName /persistent:no
if exist g:\*.* net use g: /d
net use g: \\ServerName\applications /persistent:no
if exist h:\*.* net use h: /d
net use h: \\ServerName\%username% /persistent:no

:PRINTERS
rem Connect network printers
net use lpt1: \\ServerName\Printer1ShareName /persistent:no
net use lpt2: \\ServerName\Printer2ShareName /persistent:no

:END



Be sure to put 'rem' at the beginning of any lines that you aren't using, for instance if you aren't using the Printer redirects, that section should read:
:PRINTERS
rem Connect network printers
rem net use lpt1: \\ServerName\Printer1ShareName /persistent:no
rem net use lpt2: \\ServerName\Printer2ShareName /persistent:no

It's better to keep the code in place though, just in case you want to use it later.

Jeff
TechSoEasy



0
 
LVL 2

Author Comment

by:morse57
ID: 17897099
Great, thanks Jeff.

I've made the change to SBS_LOGIN_SCRIPT.bat & undone the GP changes & it all works fine.

I presume that the "disconnected" problem on the client pc setting is just a quirk of SBS.

One final question before I put up the points, Jeff's script shows persistent = no, whereas suppsaws' version appears to be persistent = yes.  Pros & cons of either choice?

Cheers
0
 
LVL 3

Expert Comment

by:Dinga84
ID: 17897209
Its run every time at logon so it maps them each time, if it tires to map them and they are allready mapped some error message is displayed, cant recall what it is off the top of my head.
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 17897914
The reason to use persistent = no is for what Dinga84 describes as well as so that any laptop that is out of the office doesn't try to connect to a non-existent share.

The disconnected problem is due to SBS's running of the login script, which could conflict with the timing of when group policies are applied.

Jeff
TechSoEasy
0
 
LVL 2

Author Comment

by:morse57
ID: 17898058
I see.

Thanks very much
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Small Business Server 2011. NOTE: This guide has been written using the preview version of SBS2011 therefore some of the screens may …
I've often see, or have been asked, the question about the difference between the Exchange 2010 SP1 version, available as part of Small Business Server (SBS) 2011, and the “normal” Exchange 2010 SP1 Standard. The answer to the question is relativ…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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