Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to know if anyone is accessing any of folders or drives in my system(32 bit windows 2003)? I mean shared folders or non-shared folders, anything. And once if we know, how to deny access to particular host. For shared folders i know how to do, but if anyone is accessing some folder with proper credentials, i don't know how to control.

Please ignore cases like bit torrent etc. All i wanted to know is if anyone is accessing my system folders in this way


with some valid username and password. I wanted to know ip/username of system who is accessing

share|improve this question

migrated from Nov 26 '09 at 6:08

This question came from our site for professional and enthusiast programmers.

up vote 9 down vote accepted

fsmgmt.msc is your friend. Run this on the workstation in question and you will be able to see all shares, sessions, and open files on that particular workstation. From this utility you will be able to close any particular session and with folder permissions you should be able to restrict usage. However, it really depends on the privileges of the connecting user in question as to whether or not you can keep them out in this fashion. For instance, if the user is a domain admin.

Anyhow, I believe that fsmgmt will definitely get you moving in the right direction. Please write back and let us know how you made out!

Good luck.

share|improve this answer
Thanks for the answer, this gives who is connected to my machine thru rdc, but it doesn't give who is accessing files or folders(shared/non shared). It just gives how many ppl are accessing. – rplusg Dec 2 '09 at 8:46
Under the Shares tree it will show the number of people accessing which particular share. If you go to the Sessions or Open Files trees it will tell you who is connected, the machine they're connected from, how many files they have open and the names of the actual files themselves. Here's an example: – JohnyD Dec 2 '09 at 13:42
Yes got it, thanks alot for driving till the end. Gah, its my bad, didn't see properly before :). – rplusg Dec 7 '09 at 7:11

You can go to "Computer Managment" and under to system tools you have Shared Folder, Tere You can see some basic information. To open Compute Managment on icon MY Computer right click and chose Manage

share|improve this answer

If you think someone is access system hidden shares then they'll be doing it using an administrator account. Regularily check your local administrator group for membership. If you want to view who is accessing them then you will need to set up auditing then select object access sucess.

share|improve this answer

turn on audit object access.

share|improve this answer

go to local security settings within administrative tasks.

Configure the auditing options. You can audit files, drives , applications , etc. Just configure to audit success and failure.

the security events will start appearing in your event viewer in the security log.

To prevent unauthorized access , i guess you need to REMOVE that users permission from the file/folder which they are trying to access. If your using a domain controller , just add that user to the file/folder permissions and explicitly restrict their actions.

The best is , just dont add users to groups which have access to the file/folder.

share|improve this answer

Since you mention file-sharing: If you use applications like BitTorrent or an FTP or web server it is very difficult to tell who is doing what. The auditing/access control tools of the OS will not be able to tell what is going on; for them it looks as if the user who is running the file sharing client application is accessing those files, even though the "real" user is someone else (and someone unknown to your local network domain). The best you can do here is to audit access by application name, and look at the access logs that these applications maintain themselves.

share|improve this answer
I don't think the OP is talking about that kind of file sharing, in spite of the tag. – Dennis Williamson Nov 26 '09 at 7:00
please ignore cases like bit torrent etc. All i wanted to know is if anyone is accessing my system folders in this way, "\\d$\calvin_docs" with some valid username and password. I wanted to know ip/username of system who is accessing – rplusg Nov 26 '09 at 7:39

I'd be looking into using the Sysinternals Procmon.exe tool which can tell you all files/reg/network access. It'll generate a huge log to sift through, but there's a mine of information on what user is running what process and causing particular types of load on a server.

share|improve this answer

Just use the application share monitor

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Scott Pack Nov 5 '12 at 21:26

You can use the command net session in a windows cmd window. See this stackoverflow question for a couple of other techniques. I usually just use net session though, it just works.

                         enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.