I have a small script that runs on each workstation which runs defrag and chkdsk and connect each workstation temporarily to a network share that they, normally, do not have access to. The command I use to connect to them is:
net use \\server\sharename [password] /USER:domain\username P:No
Is there a command to log that user out of the drive share without restarting the computer?
Workstations run on Windows XP SP3
EDIT: I've used:
net use \\server\sharename /delete
but the command returns "The network connection cannot be found". However, I can still navigate to \\server\sharename
in MyComputer address line and have full access to it still.
EDIT2: Assume I've read through the help files for net use ;D
EDIT3: Would a reboot suffice? Yes… however it is more convenient to log the user out of the share instead =D. I know I'm difficult.
Best Answer
EDIT: To cause the credentials to get flushed: