How to log off of a share

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

Grumman-581

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top