[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

View connection to shares on a Server

Hi,

We have several MS Win 2008 File Servers at several locations with lots of windows shares, I am busy with a clean up and have the following issue with getting rid of existing visible shares:

The Servers would have several visible shares, I am adding a 2nd hidden share to all those folder locations and migrating the drive mappings to map to the hidden shares, once all users map to the hidden shares then I remove the original visible share.

I the process I pick up that when wanting to delete the original share it tells me that x amout of users are still connected to the share. How do I determine which users are specifically connected to that visible share?

When using fsmgmt.msc and Share and Storage Management on the Server one can go to "sessions" and "open folders and files" where you can see which user has a connection to the physical folder or files, but it does not show you to which share the user is connected.

Example:

- On the Server1 there is a share called "users" that points to d:\data\users\ to which all users connect via a mapped drive (some mapped via AD GPO, some manual mappings on the PCs)

- I now go and add a 2nd share to d:\data\users\ and call it "users$" and go and amend the AD GPO to map users to the "users$" share.

- In a week's time I go back to the Server and want to delete the original "users" share and it tells me "x amount of users are still connected to the "users" share with x amount of files open, do you really want to delete the share?".

- If I now go to fsmgmt.msc or Share and Storage Management it will show me that Users 1 to 20 has a session or files open to d:\data\users (the physical UNC path) so I cannot see which users are connected to the "users" share and which are connected to the "users$" share in order to send an Administrator to go and fix their mapping to map to the "users$" share.

Thanks for help with this.

Reinhard
0
ReinhardRensburg
Asked:
ReinhardRensburg
  • 3
  • 3
1 Solution
 
Ben HartCommented:
I do not know of anyway to view what you are wanting.  I'd think, logically, that it'd probably require a 3rd party tool.  But which one I can't guess.  Sorry, I'm no help but I would be interested to know the outcome.
0
 
Ben HartCommented:
Wait, wait.. what about 'net share [sharename]'?  That should show you users that have sessions to a specific share name rather than the folder...
0
 
ReinhardRensburgAuthor Commented:
Hi Ben,

Thanks for the reply, I do have one manual way of checking, but it takes time to do it this way, in the logon script I run the "net use" command and write the output to \\<fileserver>\audit\%USERNAME% so I can open these files and see which drive mappings the users got at their last login (a text file per username) which is nice, but this is not practical if there are 300 users on a site and one has to go through 300 text files to check who mapped to the visible share, but at least it's a way if one has a lot of time on hand :)

Thanks,
Reinhard
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
ReinhardRensburgAuthor Commented:
Hi Ben, I just saw you last post about "net share" - I will give it a try quickly and revert back thanks :)
0
 
ReinhardRensburgAuthor Commented:
Ben, you are the man!

Thanks, that is perfect, it works like a bomb! Screen shot attached.

Thank you so much, very practical and simple solution to my problem.

Regards,
Reinhard
net-share.JPG
0
 
Ben HartCommented:
Rock On!  Glad to hear it worked for you dude.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now