Find all that connect to my shares Keep a record of them.

Hi,

Is there a way a script that can run every 5min and record all the sessions.All the users that access my shares.
Get all data to a neatly formatted txt file.
Regards
Sharath
LVL 11
bsharathAsked:
Who is Participating?
 
nayernaguibConnect With a Mentor Commented:
Again Share Monitor. See the logging feature:

  http://www.mp3vcr.com/sharemonitor/index.html#LOGS

_______________

  Nayer Naguib
0
 
nayernaguibCommented:
Take a look at the following free tools:

  http://www.novell.com/coolsolutions/tools/18211.html
  http://www.mp3vcr.com/sharemonitor/

_______________

  Nayer Naguib
0
 
ghostdog74Commented:
here's a vbscript

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colShares = objWMIService.ExecQuery("Select * from Win32_Share")

For each objShare in colShares
    Wscript.Echo "Allow Maximum: " & objShare.AllowMaximum  
    Wscript.Echo "Caption: " & objShare.Caption  
    Wscript.Echo "Maximum Allowed: " & objShare.MaximumAllowed
    Wscript.Echo "Name: " & objShare.Name  
    Wscript.Echo "Path: " & objShare.Path  
    Wscript.Echo "Type: " & objShare.Type  
Next

usage: c:\> cscript /nologo myscript.vbs > newly_formatted_file
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
bsharathAuthor Commented:
Hi,

This script gets me all the shares that i have.But i want it to get the sessions that are running.So that i can schedule it and it can run every min .So that it goes on recording all the activities of the share.

Any way to get this...
0
 
nayernaguibCommented:
This is provided by the Share Monitor tool.

_______________

  Nayer Naguib
0
 
bsharathAuthor Commented:
Find all that are connected to my shares and keep a record in a file...Any Help...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.