Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - detect who accessed my computer from the LAN

Reply
 
Old 05-27-2009   #1 (permalink)


Vista Home Premium 32bit
 
 

detect who accessed my computer from the LAN

Hi,
this is my first post hope you will help me.
i just want to have a vbscript that popup msgbox telling that somebody accessed my computer in my lan. i want to know his/her computer name, then the file he/she opens. i know i can monitor it from COMPUTER MANAGEMENT/shared folders with sessions and blah...blah...blah... but i want to do this in vbscript.

thanks in advance.

My System SpecsSystem Spec
Old 05-29-2009   #2 (permalink)
Heinz


 
 

Re: detect who accessed my computer from the LAN

"webb" <guest@xxxxxx-email.com> schrieb im Newsbeitrag
news:80de4e4d2cfdac7d17efdab6808cd32f@xxxxxx-gateway.com...
Quote:

>
> Hi,
> this is my first post hope you will help me.
> i just want to have a vbscript that popup msgbox telling that somebody
> accessed my computer in my lan. i want to know his/her computer name,
> then the file he/she opens. i know i can monitor it from COMPUTER
> MANAGEMENT/shared folders with sessions and blah...blah...blah... but i
> want to do this in vbscript.

Hi,

I am not sure if this is what you are looking for.. but for example a
"netstat -a" command will show some connection information
Also the Firewall log (if you have on) may contain usefull information

Heinz


My System SpecsSystem Spec
Old 05-29-2009   #3 (permalink)
Bob Barrows


 
 

Re: detect who accessed my computer from the LAN

webb wrote:
Quote:

> Hi,
> this is my first post hope you will help me.
> i just want to have a vbscript that popup msgbox telling that somebody
> accessed my computer in my lan. i want to know his/her computer name,
> then the file he/she opens. i know i can monitor it from COMPUTER
> MANAGEMENT/shared folders with sessions and blah...blah...blah... but
> i want to do this in vbscript.
>
This does not sound like something that can be accomplished with
vbscript. To provide a popup that appears whenever a remote computer
accesses your computer, you would need a TSR program or a service,
neither of which is something for which vbscript is suitable, AFAIK.
Also, all incoming calls from your network card would have to be routed
through this service/tsr, which can create instability or performance
issues.

I suppose you could schedule a vbscript file to run every few minutes to
check your firewall log, but that's not really the same as what you are
asking for, is it?
--
HTH,
Bob Barrows


My System SpecsSystem Spec
Old 06-01-2009   #4 (permalink)


Vista Home Premium 32bit
 
 

Re: detect who accessed my computer from the LAN

guys thanks for your reply. but still i badly need it. here'a a situation. i made a script that lets me know when somebody dropped a file in my shared folder and it goes find. isn't it posible to know who are opening my shared folder in vbscript?
My System SpecsSystem Spec
Old 06-01-2009   #5 (permalink)
Heinz


 
 

Re: detect who accessed my computer from the LAN

"webb" <guest@xxxxxx-email.com> schrieb im Newsbeitrag
news:f9a6d9843dd5e44de12e03e1abef6524@xxxxxx-gateway.com...
Quote:

>
> guys thanks for your reply. but still i badly need it. here'a a
> situation. i made a script that lets me know when somebody dropped a
> file in my shared folder and it goes find. isn't it posible to know who
> are opening my shared folder in vbscript?

I think what you can do is this:

1.
Find out the IP connections to your PC at the time when the file was
created.
When you see that at 4pm a new file was dropped in your share - then look at
the LAN connections at 4pm
For thsi you'd need to monitor\log "netstat -a" or firewall logs in
paralell to the share's content.

2.
Instead of monitoring access to your share in "realtime" - maybe you can
use NTFS to find out who wrote a file to your share ...?
On a NTFS system each file has an owner - I think (?) that the owner is the
person that has created the file...
Have a look here if this sounds interessting for you :
http://www.microsoft.com/technet/scr...4/hey1007.mspx

Heinz


My System SpecsSystem Spec
Old 06-03-2009   #6 (permalink)


Vista Home Premium 32bit
 
 

Re: detect who accessed my computer from the LAN

it seems my problem is imposible to solve in vbs. what about this one, i want to put in my txt file all pcname available in LAN. pls a little help
My System SpecsSystem Spec
Old 07-16-2009   #7 (permalink)
HAL07


 
 

Re: detect who accessed my computer from the LAN

webb wrote:
Quote:

> it seems my problem is imposible to solve in vbs. what about this one, i
> want to put in my txt file all pcname available in LAN. pls a little
> help
>
>
The following commands can give you some info

NET SESSION <- lists sessions open to your computer
NET FILE <- lists files opened by <user name>

Both commands require administrative privileges.
--
-- HAL07, Engineering Services, Norway
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
360 refuses to detect computer Network & Sharing
My computer can't detect my speakers Vista hardware & devices
My Entire Computer Accessed Remotely w/o Permission... HELP Vista security
New Computer cannot detect SATA HDD Vista installation & setup
Computer won't detect mp3 player Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46