Operating System - Microsoft
1748336 Members
3593 Online
108762 Solutions
New Discussion юеВ

Re: Tool to display shares with users accessing it

 
SOLVED
Go to solution
Ivan Efimenko
Contributor

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:
C:\data
C:\data\app1
C:\data\app2

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
3 REPLIES 3
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.

regards.
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

http://www.dameware.com/products/dntu/

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

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

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
)


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