Page 1 of 1 1
Topic Options
#71488 - 2002-11-08 07:19 PM Drive Mapping Problems
clayton_dup1 Offline
Lurker

Registered: 2002-10-23
Posts: 4
I inherited our company's KIX script about a month ago...a portion of it is below. This past Sunday evening one of our BDC's died. Problem there was this BDC housed all our common drives and home directories. Built a new server and restored everything from backup to the new server, checked permissions, and so on. Then we had to have everyone log out and log back in so that the new drive mappings would point to the correct server shares. No matter what we did though, the new mappings were not happening. The old mappings would not go away. Finally, I added a "NET USE *: /D" to the login.bat file that calls the KIX script. This worked at killing the old mappings, but looked awful. Am i missing something in the mappings area of my script?

code:
 
SETTIME @LSERVER

USE *: /D /PERSISTENT

USE K: "\\rpsifp01\map2"
USE M: "\\rpsifp01\mrcommon"
USE Y: "\\rpsifp01\apps"

IF INGROUP ("RESEARCH") > 0
USE G: "\\rpsifp01\MRRD_MIS"
ENDIF

IF INGROUP ("RESIDUALS") > 0
USE W: "\\HOUSTONSNAP\MRACCT2"
ENDIF

IF INGROUP ("NTRPSISUPPT") > 0
USE S: "\\rpsifp01\WINSTAL"
ENDIF

IF INGROUP ("SALES") > 0
USE G: "\\RPSIGOLD\RPSIGOLD"
USE S: "\\rpsifp01\MRSALES"
USE L: "\\rpsifp01\MRREPSRV"
ENDIF

IF INGROUP ("MARKETING") > 0
USE I: "\\HOUSTONSNAP\MRDOCS"
ENDIF

IF INGROUP ("RISKPEND") > 0
USE R: "\\RPSISNA\MERMAJOR"
ENDIF

IF INGROUP ("MARKETING MGRS") > 0
USE J: "\\HOUSTONSNAP\MKTGCONF"
ENDIF

IF INGROUP ("REP SERVICES") > 0
USE L: "\\rpsifp01\MRREPSRV"
ENDIF

IF INGROUP ("MAG") > 0
USE N: "\\rpsifp01\MAG"
USE W: "\\RPSISNA\MAGTOMAP"
ENDIF

IF INGROUP ("ORACLECH") > 0
USE O: "\\rpsifp01\ORACLE"
ENDIF

IF INGROUP ("ORACLERD") > 0
USE O: "\\rpsifp01\ORACLE"
ENDIF

IF INGROUP ("FSL_IBA") > 0
USE P: "\\RPSISNA\FSL_IBA"
ENDIF

IF INGROUP ("ACCOUNTING") > 0
USE P: "\\rpsifp01\MRBUD"
USE J: "\\rpsifp01\MRACCT"
ENDIF

IF INGROUP ("ACCOUNTING BID") > 0
USE T: "\\rpsifp01\MRBIDMOD"
ENDIF

IF INGROUP ("LAWSON") > 0
USE W: "\\RPSISNA\LAWSON"
ENDIF

IF INGROUP ("SYSINT") > 0
USE Q: "\\rpsifp01\MRINTEG"
ENDIF

IF INGROUP ("ASPECTR") > 0
USE R: "\\RPSISNA\AS890360"
ENDIF

IF INGROUP ("PURCHASING") > 0
USE S: "\\rpsifp01\MRPURCH"
ENDIF

IF INGROUP ("TECH") > 0
USE T: "\\rpsifp01\MRTECH"
ENDIF

IF INGROUP ("BUDGET") > 0
USE U: "\\rpsifp01\MRBUD"
ENDIF

IF INGROUP ("BUDGET2003") > 0
USE U: "\\rpsifp01\BUDGET03"
ENDIF

IF INGROUP ("AGENT BANK") > 0
USE V: "\\rpsifp01\MRAGENTB"
ENDIF

IF INGROUP ("HR") > 0
USE W: "\\rpsifp01\MRHRSHR"
ENDIF

IF INGROUP ("COMPLIANCE") > 0
USE X: "\\rpsifp01\MRCNTRT"
ENDIF

IF INGROUP ("RETENTIONRECOVERY") > 0
USE T: "\\rpsifp01\MRRETREC"
ENDIF

IF INGROUP ("RETENTIONRECOVERYR") > 0
USE T: "\\rpsifp01\MRRETREC"
ENDIF

IF INGROUP ("MERCHANT SETUP") > 0
USE W: "\\rpsifp01\MRTECH"
USE Q: "\\rpsifp01\MSTSCAN"
ENDIF

IF INGROUP ("FACILITY") > 0
USE I: "\\rpsifp01\MRFACILITY"
ENDIF

IF INGROUP ("APP PROCESSING") > 0
USE Q: "\\rpsifp01\APSCAN"
ENDIF

IF INGROUP ("MIS") > 0
USE x: "\\RPSISNA\MAGTOMAP"
ENDIF

IF @ERROR
$Status = " Error "
MESSAGEBOX ("A problem was encountered trying to map your drive settings.
A Help Desk Request needs to be sent to the Help Desk. Thank you!","Notice",48)
ENDIF

Thanks in advance
-clayton-

Top
#71489 - 2002-11-08 07:21 PM Re: Drive Mapping Problems
clayton_dup1 Offline
Lurker

Registered: 2002-10-23
Posts: 4
As an added note...
The dead server was an NT4Server box, as is the new box. All clients are NT4. We're running version 4.0.2.0 of KIX.

-clayton-

Top
#71490 - 2002-11-08 07:26 PM Re: Drive Mapping Problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please read the KiXtart Manual for correct syntax.
code:
USE * /DELETE /PERSISTENT

_________________________
There are two types of vessels, submarines and targets.

Top
#71491 - 2002-11-08 07:29 PM Re: Drive Mapping Problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Or from my manual...

USE "*" /DELETE /PERSISTENT
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#71492 - 2002-11-08 07:34 PM Re: Drive Mapping Problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
My manual actually lists both options. The syntax list has it without quotes as has the examples section. However, the remarks section has it with quotes. Nevertheless, there's no colon and the delete parameters is not abbreviated [Wink]
_________________________
There are two types of vessels, submarines and targets.

Top
#71493 - 2002-11-08 08:04 PM Re: Drive Mapping Problems
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Why is this an ugly solution? This is a rather common cure-all.

I suspect the persistent mappings are embedded in the local registry. I have seen solutions for this issue but I forgot where. Try doing a search on this board for "persistent mappings" or some such.

jens & les,

You guys seem feisty today. [Wink]

[ 08. November 2002, 20:07: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#71494 - 2002-11-08 08:18 PM Re: Drive Mapping Problems
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I would recommend using a simple UDF to consistently remove the drive mapping you want to implement and not remove all the client mappings. I say this just in case a user has a valid persistent mapping for a special purpose.

Instead use something like:
code:
MapDrive("j:", "Server1", "Share1")  

code:
Function MapDrive($Drive, $Server, $Share)
Dim $Drive, $Server, $Share
Color c+/n
If $Drive<>"" and $Server<>"" and $Share<>""
$LogText="Connecting $Drive to \\$Server\$Share"
? $LogText
USE $Drive /Delete /Persistent
USE $Drive "\\$Server\$Share"
If @error=0
color g+/n
$x=" - Success"
"$x"
Else
color r+/n
$x=" - Failed: Error @error"
"$x"
$ErrorState=1
Endif
WriteLog ($LogText + $x)
Color w+/n
Else
WriteLog ("Function 'MapDrive' called with invalid parameters: '$Drive', '$Server', '$Share'")
Endif
Endfunction

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#71495 - 2002-11-08 09:49 PM Re: Drive Mapping Problems
clayton_dup1 Offline
Lurker

Registered: 2002-10-23
Posts: 4
i can't believe it was that easy....i promise everyone i looked at the manual..the colon there never even entered my mind....abut i'm still new to this...i do thank everyone for the help!

thanks
-clayton-

Top
Page 1 of 1 1


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

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

Generated in 0.138 seconds in which 0.07 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