Re: How to unmap "ghost" network drive

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 03/02/05


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.


Relevant Pages

  • Re: logon failure with Windows xp client
    ... it is logging on fine at first. ... that in that logon script i map three drives, and in one of my default domain ... a server or shared resource by the same user, using more than one user name ... disconnec all previous connections to the server or shared ...
    (microsoft.public.win2000.setup_deployment)
  • Re: Installing another hard drive...IDE cable setup?
    ... > IDE/ATAPI devices, i.e., hard drives and optical drives. ... > connections, and if so, connect/configure them accordingly. ... A very dramatic difference in performance, I noted while encoding raw video ...
    (microsoft.public.windowsxp.general)
  • Re: Networking w/ File Share... Seems exclusive access, help!
    ... Make a shared folder on the server C:\ drive and see if then you can access it from both client computers. ... Try Mapping Drives instead of the Net use approach. ... E) Allowed the permissions to give bartaccess and lisaaccess full r/w/ ... I can see the shared connections active ...
    (microsoft.public.windowsxp.network_web)
  • Re: Tired of burning DVDs and CDs?
    ... :> Subject: Tired of burning DVDs and CDs? ... :> - reclaim space on laptop hard drives and better organize favorite digitizations ... :> - composite RCA tytpe video connections also provided (don't throw ...
    (soc.retirement)
  • Re: BIOS doesnt recognize my dvd drive
    ... >> to the IDE cable and if there is another drive on the same cable. ... You're saying that you've tried two different optical drives in your machine ... connections to a "port" on the motherboard. ...
    (microsoft.public.windowsxp.help_and_support)