rob@volleyhollix.com
-
Total Posts
:
4
- Scores: 0
-
Reward points
:
0
- Joined: 12/12/2011
-
Status: offline
|
Script to monitor internet usage
Monday, December 12, 2011 10:14 AM
( permalink)
Hi there, I'm trying to figure out how to write VB scripts that would monitor my employees use of the internet on their PCs. I'd like my script to log the URLs visited by my workers and sent to a SQL Server or MS Access database which will be residing on another box. How do I approach this. Please help. Thanks. Robert
|
|
|
|
Wakawaka
-
Total Posts
:
456
- Scores: 23
-
Reward points
:
0
- Joined: 8/27/2009
-
Status: offline
|
Re:Script to monitor internet usage
Monday, December 12, 2011 12:44 PM
( permalink)
It depends, I haven't used the method much myself, but you can use the Shell.Application.Windows method. This will, at the very least, return the title of the window for Internet Explorer processes. I suppose another way is to intercept their internet explorer launch with a script and launch it yourself allowing you access to the IE object. Other than that, you would have to capture what they type or have a lower level monitor than VBS could get.
|
|
|
|
rob@volleyhollix.com
-
Total Posts
:
4
- Scores: 0
-
Reward points
:
0
- Joined: 12/12/2011
-
Status: offline
|
Re:Script to monitor internet usage
Monday, December 12, 2011 7:03 PM
( permalink)
I'm not too familiar with Shell.Application.Windows Can you tell me what this is, how to access this, and how I would use this to accomplish the goal of logging URLs my users visit? Thanks!!!
|
|
|
|
Wakawaka
-
Total Posts
:
456
- Scores: 23
-
Reward points
:
0
- Joined: 8/27/2009
-
Status: offline
|
Re:Script to monitor internet usage
Tuesday, December 13, 2011 1:24 AM
( permalink)
Well, it seems you CAN get the specific URL's, BUT you have to keep in mind this is only possible if they are using Internet Explorer.
Option Explicit
Dim i
Dim colWindows : Set colWindows = CreateObject("Shell.Application").Windows
Msgbox "Windows found: " & colWindows.Count, vbOkOnly, "Windows Found"
'The colWindows object is a collection InternetExplorer objects
'Refer to http://msdn.microsoft.com/en-us/library/windows/desktop/aa752084(v=vs.85).aspx for a list of all the properties and methods
For i = 0 To colWindows.Count - 1
Msgbox colWindows.Item(i).LocationURL
Next
<message edited by Wakawaka on Tuesday, December 13, 2011 1:32 AM>
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: online
|
Re:Script to monitor internet usage
Tuesday, December 13, 2011 3:32 AM
( permalink)
You should also keep in mind that trying to solve social problems with technology almost always ends poorly. Even if that were not the case, you are trying to solve it wrong. The best solution is to not give a crap what they do on their computers and instead develop real and measureable performance metrics and monitor those. Then be a useful manager and assist your employees in increasing their productivity. If instead you would like to be a cop, then the best way to do this is to monitor traffic at the switch where it enters and leaves your network.
<message edited by ebgreen on Tuesday, December 13, 2011 3:34 AM>
|
|
|
|
rob@volleyhollix.com
-
Total Posts
:
4
- Scores: 0
-
Reward points
:
0
- Joined: 12/12/2011
-
Status: offline
|
Re:Script to monitor internet usage
Tuesday, December 13, 2011 3:41 AM
( permalink)
Thank you so much... this is good stuff! I'm definitely going to try it. Thanks again. Robert
|
|
|
|
rob@volleyhollix.com
-
Total Posts
:
4
- Scores: 0
-
Reward points
:
0
- Joined: 12/12/2011
-
Status: offline
|
Re:Script to monitor internet usage
Tuesday, December 13, 2011 5:15 AM
( permalink)
Hi again, Thank you for providing me that link to MSDN. I read the page and saw the event TitleChange. Can I use this in my VB code? and if so can you please give me an example? Thanks!!!
|
|
|
|
Wakawaka
-
Total Posts
:
456
- Scores: 23
-
Reward points
:
0
- Joined: 8/27/2009
-
Status: offline
|
Re:Script to monitor internet usage
Wednesday, December 14, 2011 8:34 AM
( permalink)
I have looked at multiple ways to connect an object to events defined in a vbs file, but I didn't find anything. So, I don't think it is possible to link into the events of the already created objects. Someone else might have more experience in this area though.
|
|
|
|
wenbibi
-
Total Posts
:
11
- Scores: 0
-
Reward points
:
0
- Joined: 12/18/2011
-
Status: offline
|
Re:Script to monitor internet usage
Sunday, December 18, 2011 4:24 PM
( permalink)
Infuture,astronautswilberequired to descend from aspaceshipwhileitisstilinspaceandtoreturntoit.Theabilitytodothiswilbenecessaryinfutureflightstodistantplanets.Scientistsarenowtryingtodis- Phoenix Escortcoverifthisispossible.ThespaceshipAstrawhichlefttheearthashorttimeago,wilbetravelingthreehundredmilesin- Phoenix Escortstospace.Atacertainpoint,theAstrawilstopforashorttimeandanastronautwilattempttoleavethestationaryspaceshipandthenreturntoit.Weshalnotknow Phoenix Asian Escortwhethertheexperimenthasbeensuccessfuluntilwehavereceivedaradiomessage.Thefirstmessageisexpectedtoarriveat7o"clockthisevening.Bythattime,theAstrawilhavebeenflyingthroughspaceforseventeenhoursandwilhavecircledtheearthagreatmanytimes.Whenthefirstradiomessageshavebeenreceived,theresultsofthetripwilbean-nouncedimmediately. Phoenix Asian Escorts
|
|
|
|