Page 1 of 2 12>
Topic Options
#140851 - 2005-06-02 03:41 PM USE * /DELETE problem
piotrb Offline
Fresh Scripter

Registered: 2005-05-18
Posts: 11
Loc: Poland
Hello!
I want to clean ANY drive mappings starting logon script.
(client XP prof, server NT 4.0, KIX ver. 4.23) I use:
Code:
use * /delete /persistent


When I list current mappings (USE LIST) I see "No entries in list",
but When I try to map drive I get error 1202 (??), and in My computer still are old mappings.
I carefully read the manual:
USE <* | "device" | "resource"> /DELETE [/PERSISTENT]
IMO my command schould be OK.
Thanks for answer

Top
#140852 - 2005-06-02 04:36 PM Re: USE * /DELETE problem
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
In the KiX manual, 1202 lists as "ERROR_DEVICE_ALREADY_REMEMBERED". I suspect that there is a persistent mapping done outside of KiX either at the workstation or through the user's profile settings.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#140853 - 2005-06-02 06:15 PM Re: USE * /DELETE problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
this actually seems that there is something worth investigating.
if I read right, he does look after issuing the use del, thus, no remembering for that user should be applied, thus there is an issue.

now, is that issue of windows or kix or how they work together, is another question.
but there is clearly an issue.
_________________________
!

download KiXnet

Top
#140854 - 2005-06-02 08:59 PM Re: USE * /DELETE problem
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
I agree that something is up with the /PERSISTENT switch either in KiX or from outside mapping.

I was unable to have KiXtart unmap the drives that were set to be persistent.

Code:
USE "*" /DELETE /PERSISTENT
? 'ER1: ' + @ERROR
USE LIST
USE * /DELETE /PERSISTENT
? 'ER2: ' + @ERROR
USE LIST
USE "*" /DELETE
? 'ER3: ' + @ERROR
USE LIST
USE * /DELETE
? 'ER4: ' + @ERROR
USE LIST



Code:
ER1: 0
Current redirections :

No entries in list.

ER2: 0
Current redirections :

No entries in list.

ER3: 0
Current redirections :

No entries in list.

ER4: 0
Current redirections :

No entries in list.



Even thought it said there were no drives in the LIST the drives were still there and I could access the remote shares still.
 

One I removed the drive mappings and did not use the /PERSISTENT switch then KiX was able to unmap the drives.

I tested with KiX 4.23 and 2010 4.50 Release Candidate 1
both gave the same results.

At this point I have no method except to run maybe my own EnumNetworkDrives UDF and then for each one found SHELL out and have NET USE delete the connections.

Not really sure what's up, but KiX currently does not appear to be robust with the connection removal.
 

Top
#140855 - 2005-06-03 09:47 AM Re: USE * /DELETE problem
piotrb Offline
Fresh Scripter

Registered: 2005-05-18
Posts: 11
Loc: Poland
I make small investigation.
Client computer: orginal IBM PC with IBM preinstalled Win XP (Polish) SP2.
only MS TCP/IP stack, DHCP client, firewall disabled.
small network (100 PC), PDC and BDC with NT 4.0 SP6. No problems with network.
My job is to centralize logon process. Now users have "self made" mappings and no logon script, I working on one centralized logon script for all.
At the beginning I want to delete all old mappings (I want to do this with KiX) and have problem.
1. Kix-maked mappings are deletable
(use * /delete /persistent from KiX or net use * /delete from command line)
2. NET USE-maked mappings are deletable too
3. Mappings maked from "My computer\map network drive\" (with reconnect at logon enabled) are deletable from command line (there is nothing on the list when I type "NET USE"), but in "My computer" I still see network drive icons.
When I click on them I see:"X: goes to the not avaliable localization..." (sorry for translaton).
When I want to unmap this drive with "disconnect" I see "It is not possible to find network connection".

I think that KiX may have problem because Win XP have problem with diconnect.

IMO this is similar with Windows 9x behavior:
Code:
CASE @INWIN = ("2")
use * /delete
if DELKEY("HKCU\Network\Persistent") <> 0 ? "error "+@error endif


Thanks for answers.

Top
#140856 - 2005-06-03 02:47 PM Re: USE * /DELETE problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
this might be the same thing introduced in w2k already with the auto disconnecting drives.
_________________________
!

download KiXnet

Top
#140857 - 2005-06-03 02:53 PM Re: USE * /DELETE problem
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
In Win9x, the solution was to delete them out of the registry.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#140858 - 2005-06-04 02:52 PM Re: USE * /DELETE problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
IIRC, one of the MapDrive() UDFs can delete all drives and makes sure that the appropriate registry entries are being removed as well.
_________________________
There are two types of vessels, submarines and targets.

Top
#140859 - 2005-06-04 09:13 PM Re: USE * /DELETE problem
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Well in my testing using any of the Map UDF (without shelling to NET USE) was unable to remove the drive mapping.

I still say that there are situations where KiXtart can not remove the drive mapping, but NET USE can. So to me I think KiX needs to be reviewed by Ruud to determine what is being done differently in NET USE then his code.

i.e. Maybe KiX needs a FORCE switch or something.
 

Top
#140860 - 2005-06-05 12:34 PM Re: USE * /DELETE problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ja, that seems to be the correct conclusion and I support bringing this to ruud.
_________________________
!

download KiXnet

Top
#140861 - 2005-09-18 09:37 PM Re: USE * /DELETE problem
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Did Ruud already had a chance to look into this issue or is there another solution (not being shell '%ComSpec% /c net use * /delete') ?

We stumbled into this problem this weekend, thinking our centralized login script was handling this fine... NOT. We replaced use * /delete with the Shell command and everything workes fine till now
_________________________
Kind regards,

Top
#140862 - 2005-09-19 01:16 AM Re: USE * /DELETE problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, see in beta forum.
if this was not posted in there, it most likely wasn't catched by ruud
_________________________
!

download KiXnet

Top
#140863 - 2006-04-18 01:45 AM Re: USE * /DELETE problem
TechFan Offline
Lurker

Registered: 2006-04-18
Posts: 1
I don't see this on the beta forum. So, it must still be an issue. Do I need special access to post on the beta. We just are running into issues of drives not being deleted/remapped properly with use - works with "net use"
Top
#140864 - 2006-06-01 05:15 PM Re: USE * /DELETE problem
scott_s Offline
Fresh Scripter

Registered: 2004-06-15
Posts: 15
I am having the same problem USE g: /del does not work if it is a persistant connection. Has there been any updates on this?
Top
#140865 - 2006-06-01 05:21 PM Re: USE * /DELETE problem
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Can we have a moderator of starters forum move this thread to Beta, please ?
_________________________



Top
#140866 - 2006-06-01 07:33 PM Re: USE * /DELETE problem
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Why was this moved to beta?
IMHO, using the command without the /persistent switch is not expected to delete persistent connections.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#140867 - 2006-06-01 07:43 PM Re: USE * /DELETE problem
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Don't know who moved the post.

I agree Les, however I have used it in that fashion and still had KiX not remove the mapping.

I don't care where the post resides, but there IS SOMETHING WRONG with how KiX is unmapping the drives.

Doing everything possible in KiX there have been times when a drive would not unmap, but running NET USE did work, so something is not up to snuff.
 

Top
#140868 - 2006-06-01 08:14 PM Re: USE * /DELETE problem
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I moved it, based on a request...
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#140869 - 2006-06-01 08:43 PM Re: USE * /DELETE problem
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
If you read carefully, the problem occurs allthough the /persistent switch is used, so the move is legitimated.
_________________________



Top
#140870 - 2006-06-01 08:54 PM Re: USE * /DELETE problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
wonder if the drive is marked as "disconnected" when viewed with net use on the commandline when kixtart fails to unmap it...
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.074 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

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