SMB Sessions

Manage SMB sessions on a Windows machine using the net use command.


Display your current sessions
net use
Create a new session
net use \\<HOST> [password] /u:[DOMAIN\]<USERNAME>
Delete a session
net use \\<HOST> /del

Or use * instead of \\<HOST> to drop all sessions for your current user.

net use * /del /y