Script to monitor internet usage

Author Message
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)
0
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
 
#1
    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)
    0
    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.
     
    #2
      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)
      0
      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!!! 
       
      #3
        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)
        0
        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>
         
        #4
          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)
          0
          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>
          "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
          Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
          http://www.visualbasicscript.com/m_47117/tm.htm
           
          #5
            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)
            0
            Thank you so much... this is good stuff!  I'm definitely going to try it.
             
            Thanks again.
             
            Robert
             
             
            #6
              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)
              0
              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!!!
               
              #7
                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)
                0
                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.
                 
                #8
                  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)
                  0

                  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
                   
                  #9

                    Online Bookmarks Sharing: Share/Bookmark

                    Jump to:

                    Current active users

                    There are 0 members and 1 guests.

                    Icon Legend and Permission

                    • New Messages
                    • No New Messages
                    • Hot Topic w/ New Messages
                    • Hot Topic w/o New Messages
                    • Locked w/ New Messages
                    • Locked w/o New Messages
                    • Read Message
                    • Post New Thread
                    • Reply to message
                    • Post New Poll
                    • Submit Vote
                    • Post reward post
                    • Delete my own posts
                    • Delete my own threads
                    • Rate post

                    2000-2012 ASPPlayground.NET Forum Version 3.9