Re: How to unmap "ghost" network drive
From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 03/02/05
- Next message: Paul Hadfield: "Re: Hacking WEP"
- Previous message: Ilya Evseev: "Re: How to unmap "ghost" network drive"
- In reply to: Ilya Evseev: "Re: How to unmap "ghost" network drive"
- Next in thread: Ilya Evseev: "Re: How to unmap "ghost" network drive"
- Reply: Ilya Evseev: "Re: How to unmap "ghost" network drive"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Mar 2005 00:21:25 +1100
"Ilya Evseev" <ilya_evseev@mail.ru> wrote in message
news:OhzpuTyHFHA.3628@TK2MSFTNGP15.phx.gbl...
> Pegasus (MVP) wrote:
> > Your share is probably mapped to a drive letter by a background
> > process, e.g. by a scheduled task or by a spawned command
> > processor. You must ensure that all such tasks unmap all
> > mapped drives before they terminate.
>
> I understand and agree your idea, but my question was in another:
> what to do when background task is terminated abnormally and drive still
mapped?
> How to unmap it from outer environment without rebooting?
>
> Ilya
This little experiment might give you a pointer. Here is what I typed on my
machine:
1. runas /user:config cmd
2. net use p: \\fnlhome\c$
3. exit
4. net use
C:\Temp\Radio>net use
New connections will not be remembered.
Status Local Remote Network
--------------------------------------------------------------------------
Disconnected \\ipex2000\d$ Microsoft Windows Network
The command completed successfully.
As you see, drive P: does not show.
5. runas /user:config cmd
6. net use
New connections will be remembered.
Status Local Remote Network
----------------------------------------------------------------------------
---
Unavailable P: \\fnlhome\c$ Microsoft Windows Network
Now drive P: is visible but unavailable
7. net use P: /del
P: was deleted successfully.
8. exit
In other words: I spawned a command processor under the same
credentials as the original command processor. I was then able to
delete the mapped drive. However, this will NOT work if you have
any open handles on that drive.
- Next message: Paul Hadfield: "Re: Hacking WEP"
- Previous message: Ilya Evseev: "Re: How to unmap "ghost" network drive"
- In reply to: Ilya Evseev: "Re: How to unmap "ghost" network drive"
- Next in thread: Ilya Evseev: "Re: How to unmap "ghost" network drive"
- Reply: Ilya Evseev: "Re: How to unmap "ghost" network drive"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|