Page 1 of 1 1
Topic Options
#45021 - 2003-09-10 01:01 PM Drive mappings disappears
Anonymous
Unregistered


Hi,

I am working with Active Directory and KiXTart v4.21 which enables all users to logon to the network by the logon script.
Strange enough all drive mappings (which has been set up by USE command with KiXTart) disappears after a while. It is also noticed that the drive mappings shows a little red line in the Windows Explorer which I think means that the connection to the drive mapping has been lost anyhow.
Is there someone who can help me out? I checked all boards already but I have only found information for Windows95 machines. All my machines are working with Windows 2000 Professional.

Thanks in advance!

Top
#45022 - 2003-09-10 01:11 PM Re: Drive mappings disappears
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the red one comes from the connection timeout setting.
don't remember the exact place but IIRC, it needs to be set on server as well as on client.

what comes to the connection disappear...
I think there is a bug in some w2k version (patched or sp'ed) as I have just 1-2 clients that have that problem.
and their connections aren't all gone.
only the ones to w2k server, IIRC.

anyway, there is on this board...
not sure is it in scripts or in FAQ about the connection timeout and red cross.
the MS document speaks about NT but actually it's pure w2k shit.
_________________________
!

download KiXnet

Top
#45023 - 2003-09-10 01:18 PM Re: Drive mappings disappears
Anonymous
Unregistered


Thanks, do you have any idea where I can set up the IIRC issue?

On the other hand why is it that the connections dispears? Is it a good idea to post my script?

Top
#45024 - 2003-09-10 01:26 PM Re: Drive mappings disappears
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
to be sure, you could post it.
or the drivemapping part if it's long.
IIRC = if I recall correctly
so, not sure what is IIRC issue [Wink]

found one topic about the autodisconnect:
http://www.jsiinc.com/SUBA/tip0000/rh0019.htm
_________________________
!

download KiXnet

Top
#45025 - 2003-09-10 02:33 PM Re: Drive mappings disappears
Anonymous
Unregistered


$pbar.value = 15
$text.value = "Preparing your network mappings:"

$pbar.value = 16
$text.value = "Connecting drive: I"
Use i: "\\bellid.com\dfsroot\public"

If @error<>0 AND $debug=1
$text.value = "Connecting drive I to \\bellid.com\dfsroot\public failed"
Endif

$pbar.value = 18
$text.value = "Connecting drive: H"
Use h: "\\s_rdam_ad_01\$usr$$"

If @error<>0 AND $debug=1
$text.value = "Connecting drive H to \\s_rdam_ad_01\$usr$$ failed"
Endif

If ingroup("G_Dep_Services")
$pbar.value = 20
If ($debug=0 or $debug=1)
$text.value = "Connecting drive: F"
Endif

$text.value = "Connecting drive: F"
Use f: "\\andis03\apps"

If @error<>0 AND $debug=1
$text.value = "Connecting drive F to \\andis03\apps failed"

$text.value = "Errorcode = @error"
Endif

$pbar.value = 22
If ($debug=0 or $debug=1)
$text.value = "Connecting drive: L"
Endif

$text.value = "Connecting drive: L"
Use l: "\\bellid.com\dfsroot\services$$"

If @error<>0 AND $debug=1
$text.value = "Connecting drive L to \\andis03\services$$ failed"

$text.value = "Errorcode = @error"
Endif

; ***************** ;Services people has to work with the same settings
Copy "\\ANDIS03\Wincmd\wincmd.ini" "%windir%\Wincmd.ini"
Endif

Top
#45026 - 2003-09-10 02:46 PM Re: Drive mappings disappears
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, you get rid of the red cross with de-mapping the drives first.
then, if the user is logged on more than the timeout, the cross comes back.

use i: /delete /persistent

is the key.
but it does not totally remove the problem.
_________________________
!

download KiXnet

Top
#45027 - 2003-09-10 03:49 PM Re: Drive mappings disappears
Skatterbrainz Offline
Starting to like KiXtart

Registered: 2002-10-17
Posts: 172
Loc: Virginia, USA
On a similar issue, I have been trying to develop a function that will only map a drive if it's not already mapped, but will also accept an option "force-map" flag to remap if required. The domain is NT4 and all clients are either W2K or XP. The problem is that if the "force-map" is set and the drive is already mapped. The /DELETE option leaves the drive in a strange state. NET USE at the command windows shows "Unavailable" or "Disconnected" but that prevents the following USE from working.

code:
Function MapDrive($letter, $unc, Optional $force)
Dim $fso, $drivemap, $sharename
$fso = CreateObject("Scripting.FileSystemObject")
If $fso
$drivemap = $fso.GetDrive("$letter")
If $drivemap
$sharename = $drivemap.ShareName
? "...Already mapped: "+$letter+" to "+$sharename
If $force = 1
? "...Forced mapping: "+$letter+" to "+$unc
USE "$letter" /DELETE
Sleep 1
USE "$letter" "$unc" /PERSISTENT
$drivemap = $fso.GetDrive("$letter")
If $drivemap
$MapDrive = 1
Else
$MapDrive = 0
EndIf
Else
$drivemap = $fso.GetDrive("$letter")
? "...Already mapped: "+$letter+" to "+$drivemap.ShareName
$MapDrive = 1
EndIf
Else
? "...Mapping drive: "+$letter+" to "+$unc
USE "$letter" "$unc" /PERSISTENT
Sleep 0.5
$drivemap = $fso.GetDrive("$letter")
If $drivemap
$MapDrive = 1
Else
$MapDrive = 0
EndIf
EndIf
EndIf
$drivemap = 0
$fso = 0
EndFunction

$=MapDrive("U:", "\\vbcsr0001\e$\WebSites", 1)
$=MapDrive("V:", "\\vb-svr-04\C$")
$=MapDrive("X:", "\\vabsr0004\c$")

Anything in this code (above) that I've hosed up somewhere? If I'm reinventing the wheel, please point me to a better solution if possible? THanks!
_________________________
silence is golden, but duct tape is silver

Top
#45028 - 2003-09-10 04:00 PM Re: Drive mappings disappears
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ja...
http://kixhelp.com/udfs/udf/000108.htm
http://kixhelp.com/udfs/udf/000156.htm
http://kixhelp.com/udfs/udf/000162.htm
http://kixhelp.com/udfs/udf/000330.htm
http://kixhelp.com/udfs/udf/000163.htm
http://kixhelp.com/udfs/udf/000407.htm

here are the view mapDrive() UDFs we have in our udflib
_________________________
!

download KiXnet

Top
#45029 - 2003-09-10 04:07 PM Re: Drive mappings disappears
Skatterbrainz Offline
Starting to like KiXtart

Registered: 2002-10-17
Posts: 172
Loc: Virginia, USA
Thanks! At first, none of these worked until I realized the obvious boo-boo on my part: Using "$$" instead of "$" in the path values. Doh!
_________________________
silence is golden, but duct tape is silver

Top
#45030 - 2003-09-10 04:13 PM Re: Drive mappings disappears
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lol!
we all been there too... I quess [Wink]
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.055 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org