Disconnecting Mapped Drives

From: Robin (diilbert_at_techemail.com)
Date: 07/05/04


Date: Mon, 05 Jul 2004 11:54:22 -0400

When the user Ends Session I want to be able to disconnect all Mapped
drives.

I am using the WM_QUERYENDSESSION message to run a shellex to do the
following

net use * /d /y

But the command never runs and the mapped drives stay connected. I
thought that I could stall the shutdown/restart run the command then
continue with the Shutdown/Restart. However I am unable to determine what
the original request was (Shut down or restart). Everything works except
what I just mentioned.

Is there a way to disconnect mapped drives at End Session that I am over
looking?

Thanks in advance,

Robin

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


Relevant Pages

  • Re: Mapped drives show disconnected when users log off and log on
    ... > I created roaming profile for all the users but since the wireless would ... > disconnect once in a while and they would loose their roaming profiles I ... > I have a vbs logon script which maps drives according to what groups the ... > computer they have two session starting, one is with the name of the computer ...
    (microsoft.public.windows.server.active_directory)
  • Mapped drives show disconnected when users log off and log on
    ... I created roaming profile for all the users but since the wireless would ... disconnect once in a while and they would loose their roaming profiles I ... I have a vbs logon script which maps drives according to what groups the ... computer they have two session starting, one is with the name of the computer ...
    (microsoft.public.windows.server.active_directory)
  • Re: Delay in opening Files in File list box
    ... I guess I need to be diligent and disconnect those drives that I am ... no actively using on a session on the computer or over the Internet. ...
    (microsoft.public.office.misc)
  • Re: Dead PC - Wont POST
    ... Disconnect all such devices and try to POST. ... remove all DVDs from your drives. ... I get exactly the same from the onboard graphics. ... I wonder if it could be the BIOS battery? ...
    (uk.comp.homebuilt)
  • RE: Mapped Drives over VPN
    ... server once you disconnect it. ... This method contains information about modifying the registry. ... Description of the Microsoft Windows Registry: ... Please check if the disconnect drives are listed. ...
    (microsoft.public.windows.server.sbs)

Loading