View connection to shares on a Server
Posted on 2014-08-13
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.
- 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.