Navigation

8/04/2014

Listing users on windows shared drive

Ran out of "connections" to a windows file share, logged into server and did the following:


To disconnect a user or all users from a shared folder or drive by using the Windows interface
  1. Open Computer Management.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
  3. In the console tree, click System Tools, click Shared Folders, and then click Sessions.
  4. To disconnect all users, on the Action menu, click Disconnect all users. To disconnect a specific user, in the Details pane right-click the user name, and then click Close Session.

 

To disconnect a user or all users from a shared folder or drive by using a command line
  1. To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
  3. Type:
    net session \\<computer> /delete
    
    For example, to disconnect a user on a computer named user_computer, which is connected to a shared folder that you are managing, type:
    net session \\user_computer /delete

From: MS Technet

No comments:

Post a Comment