#140851 - 2005-06-02 03:41 PM
USE * /DELETE problem
|
piotrb
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
|
|
|
|
#140854 - 2005-06-02 08:59 PM
Re: USE * /DELETE problem
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
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
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
|
|
|
|
#140863 - 2006-04-18 01:45 AM
Re: USE * /DELETE problem
|
TechFan
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
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
|
|
|
|
#140868 - 2006-06-01 08:14 PM
Re: USE * /DELETE problem
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I moved it, based on a request...
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 918 anonymous users online.
|
|
|