Page 1 of 1 1
Topic Options
#47428 - 2003-10-29 04:22 PM use * /delete does not seem to work!
Cary Shultz Offline
Fresh Scripter

Registered: 2003-10-20
Posts: 14
Loc: Roanoke, VA
Howdy All!

Just a last question ( for the time being ). Everything is going great with the KixTart logon script with one exception: the 'use * /delete' does not seem to be deleting the previous logon script mapped network drives.

We were using a simply "logon.bat" logon script. Here is the code for it:

code:
 REM @ECHO OFF

NET USE K: /DELETE
NET USE K: \\W2KSERVER04\SOFTWARE

NET USE O: \\W2KSERVER04\IMAGES

NET USE P: \\W2KSERVER04\%USERNAME%

NET USE Q: \\W2KSERVER04\UNROUTED


If "%OS%" == "WINDOWS_NT" GOTO NT
NET TIME \\W2KSERVER04 /SET /YES
GOTO END


:NT
NET USE P: \\W2KSERVER04\SCAN\%USERNAME%

:END

My Boss wrote that. We had both WIN2000 and WIN98 systems in the environment but that recently changed. So, the users have four mapped network drives from this logon script and several others from a Novell logon script. None overlap! There were no issues whatsoever.

So,we now want to make use of KixTart. This logon script file is named 'logon.kix' and is supposed to replace the previous Windows logon script drive mappings and all but two of the Novell drive mappings. Here is the logon.kix script file:

code:
 $rc=SETCONSOLE("SHOW")
;("HIDE")
;Kixtart logon script
;created: 10/22/2003
;Author: Cary W. Shultz

USE * /DELETE

USE G: "\\w2kserver01\data\rating"
;USE H: "\\w2kserver01\users\" + @USERID
USE I: "\\w2kserver01\data\apps"
USE J: "\\w2kserver01\data\apps\spdata"

;IF @WKSTA <> "W2kSERVER03"
;USE M: "\\w2kserver01\data\applied"
;ENDIF

;USE N: "\\w2kserver01\data\tam_data"

USE O: "\\w2kserver04\images"
USE P: "\\w2kserver04\scan\" + @USERID
USE Q: "\\w2kserver04\unrouted"

USE R: "\\w2kserver01\shared"
USE S: "\\w2kserver01\software"


;IF @USERID = "ADMINISTRATOR" or @USERID = "SUPPORT"
; USE T: "\\w2kserver04\software"
;ELSE
; SELECT
; CASE InGroup("GSG_Roanoke")
; USE M: "\\w2kserver01\data\applied"
; CASE InGroup("GSG_Blacksburg")
; USE M: "\\w2kserver01\data\applied"
; CASE InGroup("GSG_Richmond")
; USE M: "\\w2kserver01\data\applied"
; CASE InGroup("GSG_Raleigh")
; USE M: "\\w2kserver01\data\applied"
; ENDSELECT
;ENDIF

EXIT 0

It worked in the 'test environment' - which consisted of me taking an existing WIN2000 computer and creating three test users and removing the Novell Client software and having fun. No issues. However, in the production environment the four mapped network drives from the previous logon.bat remain. Can't open them but they are still there AND preventing the new KixTart logon script from making the proper mapping.

Each user still has a K:\ drive - which should not be.

I went to each user's profile and manually removed the "logon.bat" and replaced it with 'Kix32.exe logon.kix' last night. I told all users to log off last night and to log back on this morning. All of them have done so and all still have remnants of logon.bat.

Any ideas?

Thank you,

Cary

Top
#47429 - 2003-10-29 04:27 PM Re: use * /delete does not seem to work!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I have no time to read your whole message now but use this instead:
code:
 use "*" /delete /persistent 

_________________________
!

download KiXnet

Top
#47430 - 2003-10-29 05:47 PM Re: use * /delete does not seem to work!
Cary Shultz Offline
Fresh Scripter

Registered: 2003-10-20
Posts: 14
Loc: Roanoke, VA
Thank you for the reply, Lonkero!

Would that not prevent the Novell login script from running as well as the H:\ from being mapped ( this is stipulated in each user's profile - Conntect [Drive Letter: ] To [\\servername\share\%username% ])?

Thanks again,
Cary

Top
#47431 - 2003-10-29 06:59 PM Re: use * /delete does not seem to work!
Cary Shultz Offline
Fresh Scripter

Registered: 2003-10-20
Posts: 14
Loc: Roanoke, VA
Figured it out...

Simply add the /persistent switch after the /delete switch and all is good.

Top
#47432 - 2003-10-29 07:17 PM Re: use * /delete does not seem to work!
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
As Lonkero already told you in the post you thanked him for [Confused]
_________________________
There are two types of vessels, submarines and targets.

Top
#47433 - 2003-10-29 09:14 PM Re: use * /delete does not seem to work!
Cary Shultz Offline
Fresh Scripter

Registered: 2003-10-20
Posts: 14
Loc: Roanoke, VA
Well, I did thank him for the reply. However, I also asked him a question about using the "*" and that removing all other drive mappings. I tested it and using

code:
 use "*" /delete /persistent 

did indeed remove the remaining drive mappings from the Novell login script as well as the H:\ that was a part of the user profile. I remembered reading about that in the Manual! I do know about 'RTFM' - which seems to be the mantra in this particular BB.

So, I simply added the switch "/persistent" to my original script and all is fine and dandy.

Cary

Top
#47434 - 2003-10-29 09:25 PM Re: use * /delete does not seem to work!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it's ok in one meaning.
it might disable persistent mapping.

on the other hand it does NOT remove mappings.
so, for the purpose you asked it for, the only suitable solution is my way.
what comes to novel mappings, sad that you have novel in there. try to remember you in my prayers, k?
_________________________
!

download KiXnet

Top
#47435 - 2003-10-29 09:49 PM Re: use * /delete does not seem to work!
Cary Shultz Offline
Fresh Scripter

Registered: 2003-10-20
Posts: 14
Loc: Roanoke, VA
Howdy!

When I look at the manual I see the following:

Use USE "*" /DELETE to delete all current connections except those to a NETLOGON share and those to the drive or share from which KiXtart was started.

The Novell login script runs before the Windows logon script ( logon.kix ). I tested this on three machines with three users in the production environment and the only mapped network drives that they had were those from logon.kix.

After I replaced "*" with * and added the "/persistent" switch and then ran it the few remaining Novell mappings were there, as was the H:\ mapping. And, the undesired four mappings from the previous logon script ( logon.bat ) were no longer there! Can only assume that the "*" /DELETE /PERSISTENT removed ( aka deleted ) all existing mappings ( see manual extract ).

Anyway, all is well now.

And I am very glad that Novell is going to be removed. I much prefer WIN2000!

Cary

Top
#47436 - 2003-10-31 02:13 PM Re: use * /delete does not seem to work!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
One thing to keep in mind with the USE '*' /DELETE /PERSISTENT

If you have any printer mappings to LPTx at DOS, you will need to re-map those as well. We have a couple of old legacy applications that need LPT1 mapped. So, what you should do in this case, is "capture" LPTx, write to a variable and then do a USE LPTx $var..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

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
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.063 seconds in which 0.03 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