Home All Groups Group Topic Archive Search About

How do I disconnect from a network share?

Author
23 Nov 2007 9:38 PM
Ant
Hello!

After connecting to a network share successfully that requires me to log
in (user name and password) through a shortcut or manually (e.g.,
\\192.168.1.123\), how do I disconnect so that when I connect again
without a reboot, I get a password prompt again since I am using shared
machines (Windows 2000 and XP; good to know for Vista too if it is
different).

Thank you in advance. :)
--
"What reason, like the careful ant, draws laboriously together, the wind
of accident sometimes collects in a moment." --Friedrich von Schiller
    /\___/\
   / /\ /\ \      Phillip/Ant @ http://antfarm.ma.cx (Personal Web Site)   
  | |o   o| |        Ant's Quality Foraged Links (AQFL): http://aqfl.net
     \ _ /       Remove ANT from e-mail address: philpi@earthlink.netANT
      ( )                                           or ANT***@zimage.com
Ant is currently not listening to any songs on his home computer.

Author
23 Nov 2007 10:37 PM
WTC
Ant wrote:

> Hello!
>
> After connecting to a network share successfully that requires me to
> log in (user name and password) through a shortcut or manually (e.g.,
> \\192.168.1.123\), how do I disconnect so that when I connect again
> without a reboot, I get a password prompt again since I am using
> shared machines (Windows 2000 and XP; good to know for Vista too if
> it is different).
>
> Thank you in advance. :)

Hi Ant,

This should help you,

Net session
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_session.mspx?mfr=true

Net config
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_config_server.mspx?mfr=true

--
William Crawford
MS-MVP Windows Shell/User
Author
23 Nov 2007 11:16 PM
Ant
On 11/23/2007 2:37 PM PT, WTC typed:

Show quote
>> After connecting to a network share successfully that requires me to
>> log in (user name and password) through a shortcut or manually (e.g.,
>> \\192.168.1.123\), how do I disconnect so that when I connect again
>> without a reboot, I get a password prompt again since I am using
>> shared machines (Windows 2000 and XP; good to know for Vista too if
>> it is different).
>
> Hi Ant,
>
> This should help you,
>
> Net session
> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_session.mspx?mfr=true
>
> Net config
> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_config_server.mspx?mfr=true

That doesn't seem to work:

C:\>net config workstation
Computer name                        \\foobar
Full Computer name                   foobar
User name                            user

Workstation active on
         NetbiosSmb (000000000000)
         NetBT_Tcpip_{32E2E3DA-2294-480F-B978-1B6192E145AF} (0016179432D6)
         NetBT_Tcpip_{20170527-3DEF-4363-8D48-F4828937969E} (005056C00001)
         NetBT_Tcpip_{A668F481-2E02-447A-AC6E-D905910DCBA9} (005056C00008)

Software version                     Windows 2002

Workstation domain                   wd
Workstation Domain DNS Name          (null)
Logon domain                         foobar

COM Open Timeout (sec)               0
COM Send Count (byte)                16
COM Send Timeout (msec)              250
The command completed successfully.


C:\>net session
There are no entries in the list.


I tried with two XP SP2 machines too. I even checked to see my share
session was still working. Is it because the computer I am sharing with
is using Samba on Debian/Linux?
--
"What is it all but a trouble of ants... In the gleam of a million...
million of suns? --Alfred Lord Tennyson
    /\___/\
   / /\ /\ \      Phillip/Ant @ http://antfarm.ma.cx (Personal Web Site)
  | |o   o| |        Ant's Quality Foraged Links (AQFL): http://aqfl.net
     \ _ /       Remove ANT from e-mail address: philpi@earthlink.netANT
      ( )                                           or ANT***@zimage.com
Ant is currently not listening to any songs on his home computer.
Author
24 Nov 2007 3:29 PM
harrykrishna.nospam
Ant <philpi@earthlink.netANT> wrote:

>Hello!
>
>After connecting to a network share successfully that requires me to log
>in (user name and password) through a shortcut or manually (e.g.,
>\\192.168.1.123\), how do I disconnect so that when I connect again
>without a reboot, I get a password prompt again since I am using shared
>machines (Windows 2000 and XP; good to know for Vista too if it is
>different).
>
>Thank you in advance. :)


If I understand you properly you just want to drop the connection
credentials so you are required to authenticate the next time. If so,
open a command prompt and tyoe "NET USE". This will show you your
current connections so if you're mapped using a drive letter you could
type "NET USE X: /d" where X: is the drive.

If you are not mapped via a drive you coult type "NET USE
\\192.168.1.123\c$ /d" (or whatever your share name is)"

Also, if you simply connected usijng an IPC it might not show us but
you could always try "NET USE \\192.168.1.123\ipc$ /d" to be sure...

HTH

Ha®®y

HarryKrishna.nospam@online.ie
Author
24 Nov 2007 9:32 PM
Ant
On 11/24/2007 7:29 AM PT, harrykrishna.nospam@online.ie typed:

Show quote
>> After connecting to a network share successfully that requires me to log
>> in (user name and password) through a shortcut or manually (e.g.,
>> \\192.168.1.123\), how do I disconnect so that when I connect again
>> without a reboot, I get a password prompt again since I am using shared
>> machines (Windows 2000 and XP; good to know for Vista too if it is
>> different).
>>
>> Thank you in advance. :)
>
>
> If I understand you properly you just want to drop the connection
> credentials so you are required to authenticate the next time. If so,
> open a command prompt and tyoe "NET USE". This will show you your
> current connections so if you're mapped using a drive letter you could
> type "NET USE X: /d" where X: is the drive.
>
> If you are not mapped via a drive you coult type "NET USE
> \\192.168.1.123\c$ /d" (or whatever your share name is)"
>
> Also, if you simply connected usijng an IPC it might not show us but
> you could always try "NET USE \\192.168.1.123\ipc$ /d" to be sure...

Thank you!!! NET USE \\192.168.1.123\ipc$ /d" was it! :) Do I assume
this works for 9x, 2000, and Vista as well?
--
"I killed an ant, now all my relatives are afraid of me." --unknown
    /\___/\
   / /\ /\ \      Phillip/Ant @ http://antfarm.ma.cx (Personal Web Site)
  | |o   o| |        Ant's Quality Foraged Links (AQFL): http://aqfl.net
     \ _ /       Remove ANT from e-mail address: philpi@earthlink.netANT
      ( )                                           or ANT***@zimage.com
Ant is currently not listening to any songs on his home computer.
Author
25 Nov 2007 3:03 PM
harrykrishna.nospam
Ant <philpi@earthlink.netANT> wrote:

Show quote
>On 11/24/2007 7:29 AM PT, harrykrishna.nospam@online.ie typed:
>
>>> After connecting to a network share successfully that requires me to log
>>> in (user name and password) through a shortcut or manually (e.g.,
>>> \\192.168.1.123\), how do I disconnect so that when I connect again
>>> without a reboot, I get a password prompt again since I am using shared
>>> machines (Windows 2000 and XP; good to know for Vista too if it is
>>> different).
>>>
>>> Thank you in advance. :)
>>
>>
>> If I understand you properly you just want to drop the connection
>> credentials so you are required to authenticate the next time. If so,
>> open a command prompt and tyoe "NET USE". This will show you your
>> current connections so if you're mapped using a drive letter you could
>> type "NET USE X: /d" where X: is the drive.
>>
>> If you are not mapped via a drive you coult type "NET USE
>> \\192.168.1.123\c$ /d" (or whatever your share name is)"
>>
>> Also, if you simply connected usijng an IPC it might not show us but
>> you could always try "NET USE \\192.168.1.123\ipc$ /d" to be sure...
>
>Thank you!!! NET USE \\192.168.1.123\ipc$ /d" was it! :) Do I assume
>this works for 9x, 2000, and Vista as well?


You're welcome.

It should work for all OS I believe. You will likely need to open an
elevated  CMD prompt in Vista (Run as Administrator) although I'm not
sure...


Ha®®y

HarryKrishna.nospam@online.ie
Author
25 Nov 2007 7:44 PM
Jack (MVP-Networking).
Hi
It should work with all windows OS.
Hi
You actually can create small text files on these commands save them with
bat (for batch) extension, and drag an Link/Icon to a place of your choice.
Double click on the Icon and the connection Gone.
Jack (MVP-Networking).

Show quote
"Ant" <philpi@earthlink.netANT> wrote in message
news:OZVL7FuLIHA.3516@TK2MSFTNGP02.phx.gbl...
> On 11/24/2007 7:29 AM PT, harrykrishna.nospam@online.ie typed:
>
>>> After connecting to a network share successfully that requires me to log
>>> in (user name and password) through a shortcut or manually (e.g.,
>>> \\192.168.1.123\), how do I disconnect so that when I connect again
>>> without a reboot, I get a password prompt again since I am using shared
>>> machines (Windows 2000 and XP; good to know for Vista too if it is
>>> different).
>>>
>>> Thank you in advance. :)
>>
>>
>> If I understand you properly you just want to drop the connection
>> credentials so you are required to authenticate the next time. If so,
>> open a command prompt and tyoe "NET USE". This will show you your
>> current connections so if you're mapped using a drive letter you could
>> type "NET USE X: /d" where X: is the drive.
>>
>> If you are not mapped via a drive you coult type "NET USE
>> \\192.168.1.123\c$ /d" (or whatever your share name is)"
>>
>> Also, if you simply connected usijng an IPC it might not show us but
>> you could always try "NET USE \\192.168.1.123\ipc$ /d" to be sure...
>
> Thank you!!! NET USE \\192.168.1.123\ipc$ /d" was it! :) Do I assume this
> works for 9x, 2000, and Vista as well?
> --
> "I killed an ant, now all my relatives are afraid of me." --unknown
>    /\___/\
>   / /\ /\ \      Phillip/Ant @ http://antfarm.ma.cx (Personal Web Site)
>  | |o   o| |        Ant's Quality Foraged Links (AQFL): http://aqfl.net
>     \ _ /       Remove ANT from e-mail address: philpi@earthlink.netANT
>      ( )                                           or ANT***@zimage.com
> Ant is currently not listening to any songs on his home computer.

AddThis Social Bookmark Button