How do I disconnect from a network share?

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

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: (e-mail address removed)
( ) or (e-mail address removed)
Ant is currently not listening to any songs on his home computer.
 
Ant said:
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
 
Ant said:
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

(e-mail address removed)
 
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: (e-mail address removed)
( ) or (e-mail address removed)
Ant is currently not listening to any songs on his home computer.
 
Ant said:
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

(e-mail address removed)
 
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).
 
Back
Top