Disconnect mapped drive with "Reconnect at logon" setting on Vista

7,357

Solution 1

to disconnect, use:

net use Z: /d

Windows will not try to re-connect the drive when logging on again (unless the drive is actually being connected in a logon script or similar, of course).

Solution 2

NET USE /PERSISTENT:NO will turn off persistence for future network mappings. If you already have the mapping, you need to delete it and recreate it after to change the setting.

Share:
7,357

Related videos on Youtube

Toro
Author by

Toro

Updated on September 17, 2022

Comments

  • Toro
    Toro over 1 year

    How to disable the Reconnect at logon setting for a mapped network drive on Vista? How to disconnect already mapped drives?

    • RobertTheGrey
      RobertTheGrey about 15 years
      Are you wanting to do this as a once off, or as a task via SMS or something on your network for all users?
    • Toro
      Toro about 15 years
      I want just to turn it off for a specific mapping.
  • Toro
    Toro about 15 years
    It doesn't work, when I log off and log on again I still have a mapped drive,
  • Toro
    Toro about 15 years
    Works patially: persistence is OFF for future mappings, but I'm not able to kill my existing mapping...
  • hakamadare
    hakamadare almost 14 years
    my experience so far is also that this procedure is not sufficient; i end up with the drive still mapping automatically.