Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Microsoft
Showing results for 
Search instead for 
Did you mean: 

Tool to display shares with users accessing it

Go to solution
Ivan Efimenko

Tool to display shares with users accessing it

Dear experts!

I want to know is there any tool that could display open files on the server with user who accessed it AND with share what was used to access the file. If you go to the “Computer Management\System Tools\Shared Folders\Open Files”, you find all the same, but without information about share used.
OR if there is a tool that could list all shares WITH user names who connected to it – it solve the problem too.

The problem is: We have several shares like:

So, using Computer Management, its impossible to find WHICH share is exactly used, because in Shares we can see only the number of connected users and in Open Files we can see the files that are used BUT its unknown to which share user is connected.

Thank you very much in adva
Joseph Loo
Honored Contributor

Re: Tool to display shares with users accessing it

hi ivan,

which OS version r u on? i believe from windows 2000 onwards, there is a "Accessed By" column in Open Files which tells u which user is accessing what file.

what you do not see does not mean you should not believe
Guy Humphreys
Valued Contributor

Re: Tool to display shares with users accessing it

Hi Ivan,

I am assuming you are on NT4 becuase as Joseph says you can do this easily in W2K and later.

I have found Dameware NT Utils to be an excellent package that will do what you need plus a whole host of other useful featuers as well

They have a trial version so you can see if it fits your needs before parting with any money.

'If it ain't broke, don't fix it!'
Jon Finley
Honored Contributor

Re: Tool to display shares with users accessing it

Quick and dirty script (get_shares.cmd)

REM ..: Script will list out the shares to a file, then parse each share to show WHO is attached.
echo ------------------------------------------------------ > cur_users.txt
date /t >> cur_users.txt
echo ------------------------------------------------------ >> cur_users.txt

net share > cur_shares.txt
for /f %%i in (cur_shares.txt) do (
net share %%i >> cur_users.txt
echo -------------------------------------------------------- >> cur_users.txt

"Do or do not. There is no try!" - Yoda