We have an extern computer in our office and sometimes we need to connect it to some shared folders in our network. but afterwards we want to delete its connection. Right now we restart the machine, but I want to find out, if there is a more practical solution.
My shared folder which I want to connect and remove afterwards
after some research I found out that net use does things like remove remote drives with the command
net use X: \delete
But for a shared folder I do not have a drive letter.
Can I use net use to detach the connection to a shared folder, so that I have to add in the username and password again when I want to reconnect?
Or is there a different approach than net use
Best Answer
Try
net use \\Computer\Sharename /delete
. You'll have to remove all shares to a single computer/server in order to log on again (net use /user:...
). You can also usenet use * /delete
to disconnect all shares from a client.