How to log off of a share

  • Thread starter Thread starter DC
  • Start date Start date
D

DC

Hello,

I have a server that has network shares accessed by 3 winxp computers. Each user (11 of them) have there out private folder in the
"Users" share. My problem, is that once you connect, your stuck in there. The only way to switch users that I know of is to reboot the
computer. Is there a way to make windows "forget" your username and password for the share, so that the next user who sits down has to type
it in again?

I would prefer something that can be done via the command line, so that I can script it. Also, these shares are mapped to Z: Y: and
X:. I really do not want to unmap these, although thats fine as long as they can be re-mapped within a shell script as well.
 
in message
I would prefer something that can be done via
the command line, so that I can script it. Also,
these shares are mapped to Z: Y: and X:. I
really do not want to unmap these, although
thats fine as long as they can be re-mapped
within a shell script as well.

Check out the "NET USE" command...

net use z: /d
net use z: \\server\share
net use \\server
net use \\server /d
net use \\server\share
net use \\server\share /d

Issuing "net use" by itself will give you a list of the connections that you
currently have defined...
 
Back
Top