How do I disconnect from a network share?

  • Thread starter Thread starter Ant
  • Start date Start date
A

Ant

Guest
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 ANTant@zimage.com
Ant is currently not listening to any songs on his home computer.
 
Re: How do I disconnect from a network share?

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/.../all/proddocs/en-us/net_session.mspx?mfr=true

Net config
http://www.microsoft.com/resources/...roddocs/en-us/net_config_server.mspx?mfr=true

--
William Crawford
MS-MVP Windows Shell/User
 
Re: How do I disconnect from a network share?

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
 
Re: How do I disconnect from a network share?

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 ANTant@zimage.com
Ant is currently not listening to any songs on his home computer.
 
Re: How do I disconnect from a network share?

Ant <philpi@earthlink.netANT> wrote:

>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
 
Re: How do I disconnect from a network share?

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).

"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 ANTant@zimage.com
> Ant is currently not listening to any songs on his home computer.
 
Back
Top