Re: Drive Mapping by JHP
JHP
Fri Jun 24 15:51:54 CDT 2005
Some network drives show with a red 'X'
Symptoms: you have mapped some network drives and checked the reconnect at
logon, or your network uses logon script to map network drives. After
rebooting, some network mapped drives may show with a red 'X'. If you click
on the drive, it becomes active.
Cause: net use /persistent:yes is default settings for NT and win2000/XP.
This is why when you have mapped some network drives and check the reconnect
at logon, or your network uses logon script to map network drives, the
mapped network drives may show red Xs after rebooting. If you enable echo
and pause the logon script or if using net use to map the same drive
manually, you may get "System error 85 has occurred. The local device name
is already in use." One thing you may want to try to avoid the red X is
using net use /persistent:no, for example, net use i: \\servername\folder
/persistent:no.
Why does net use default is persistent
If you disable autodisconnection and you are running workgroup, you may be
easily to hit the limit (10 connections for workgroup). Even some computers
are idled, but since you have disabled the autodisconenction, they are still
accounted 1 connection. This is a why MS put the autodisconnect feature in.
Why some mapped network drives show a red x
SYMPTOMS: You find that the network drive mapping may be disconnected after
15 minutes of inactivity and Windows Explorer may display a red "X" on the
icon of the mapped drive. However, if you double-click it reconnects
quickly.
RESOLUTION: by default, idle connections will be dropped after 15 minutes.
To modify idle time, at a command prompt using net config server
/autodisconnect: minutes. For example, to set the Autodisconnect value to
30 minutes, you would run the following command line: net config server
/autodisconnect:30. If you would like to turn Autodisconnect off, do net
config server /autodisconnect:-1.
HTH
"Danny M" <prosoldier@woolcom.com> wrote in message
news:erkYSt$dFHA.2500@TK2MSFTNGP10.phx.gbl...
> Tamas
>
> I tried what you recommended but the mapped drive letter still doesn't
> show as mapped or disconnected
>
> "Tamas Csaba" <tamas.csaba@belvarosi.hu> wrote in message
> news:Ocq33F0dFHA.1504@TK2MSFTNGP15.phx.gbl...
>> try this:
>> WSHNetwork.MapNetworkDrive "z:",\\comuterpame\share","TRUE"
>>
>>
>>
>>
>> "Danny M" <prosoldier@woolcom.com> az alábbiakat írta a következõ
>> hírüzenetben: OxRTkyzdFHA.2548@TK2MSFTNGP10.phx.gbl...
>>> The problem i have is i have a logon script that map's network drives.
>>> The mapping is done correctly but you display the network drive on a
>>> remote computer the drive shows as being disconnected. You can click on
>>> the drive and it will open up but it stills shows as disconnected. the
>>> script is listed below: Can anyone help and let me know what i'm doing
>>> wrong
>>>
>>> danny
>>>
>>> Option Explicit
>>> Dim objNetwork
>>> Dim strDriveLetter, strRemotePath
>>> strDriveLetter = "F:"
>>> strRemotePath = "\\server\Vol1"
>>>
>>>
>>> ' Purpose of script to create a network object. (objNetwork)
>>> ' Then to apply the MapNetworkDrive method. Result F: drive
>>> Set objNetwork = WScript.CreateObject("WScript.Network")
>>>
>>> objNetwork.MapNetworkDrive strDriveLetter, strRemotePath
>>> WScript.Quit
>>>
>>>
>>
>>
>
>