+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
Windows Thread, Record Logon in Technical; Originally Posted by Pottsey Yes, currently have strUserDirectory = "\Hp-server\Log_Logs$\Users" strCompDirectory = "\Hp-server\Log_Logs$\Computers" Just tripled checked the permissions and tried ...
  1. #16
    tosh74's Avatar
    Join Date
    Dec 2006
    Location
    Scotland
    Posts
    136
    Thank Post
    27
    Thanked 43 Times in 27 Posts
    Rep Power
    23
    Quote Originally Posted by Pottsey View Post
    Yes, currently have

    strUserDirectory = "\\Hp-server\Log_Logs$\Users"
    strCompDirectory = "\\Hp-server\Log_Logs$\Computers"

    Just tripled checked the permissions and tried other folders. As usefull as they are I sometimes hate scripts.
    I'm just checking that the above means that you have edited the script and you actually have that folder structure in place. If so then I would try (at first) assigning EVERYONE FULL ACCESS then tighten up your security permissions on both the share level and security (ntfs) level.

  2. Thanks to tosh74 from:

    Pottsey (20th January 2009)

  3. #17
    Pottsey's Avatar
    Join Date
    Apr 2006
    Location
    Nottinghamsire
    Posts
    761
    Thank Post
    3
    Thanked 52 Times in 42 Posts
    Rep Power
    30
    Hrrm even more confused now, the script is working. It’s bringing up an error message but the folder is full of text log files.

    EDIT: removed the $ from all four paths and its working perfectly. Thanks Tosh
    Last edited by Pottsey; 20th January 2009 at 10:18 AM.

  4. #18
    ChrisP's Avatar
    Join Date
    Apr 2007
    Location
    norfolk
    Posts
    150
    Thank Post
    4
    Thanked 8 Times in 8 Posts
    Rep Power
    17
    I log to a mysql database, i find it to be a neat solution... then it's redisplayed via iis to a admin screen.

    that way i can search and connect via vnc with 1 click when a user requires assistance

  5. #19
    IanT's Avatar
    Join Date
    Aug 2008
    Location
    @ the back of my server racks farting.....
    Posts
    1,891
    Thank Post
    2
    Thanked 118 Times in 109 Posts
    Rep Power
    60
    Im getting:

    Line 30
    Char 2
    Error: Permission Denied
    Code: 800A0046
    Source: Microsoft VBScript rutime error

    The script still runs and logs though.

  6. #20
    IanT's Avatar
    Join Date
    Aug 2008
    Location
    @ the back of my server racks farting.....
    Posts
    1,891
    Thank Post
    2
    Thanked 118 Times in 109 Posts
    Rep Power
    60
    got it working!

  7. #21

    Join Date
    Dec 2008
    Posts
    197
    Thank Post
    7
    Thanked 32 Times in 18 Posts
    Rep Power
    18
    Started using this properly on January 23rd.

    Made some edits to the VBS scripts for a simple line input into the text files.

    Set up the shares on our second DC and then watched the logging start

    Only additional thing I've done is set up a batch script which archives the log files into a daily folder at 23:59 each night (scheduled task) and then clears out the active folders.

    i.e.

    $:\$$$Tracker\Users
    $:\$$$Tracker\Computers

    to

    $:\$$$Tracker\Archive\DD-MM-YYYY\Users
    $:\$$$Tracker\Archive\DD-MM-YYYY\Computers

    This will eliminate the need to ever do a tidy up or clear out.

    Only thing I have noticed is some machines aren't logging... most likely because they're just wanting a rebuild back on to CC3.

  8. Thanks to NeoPlosive from:

    garethedmondson (23rd March 2009)

  9. #22
    TwoZeroAlpha's Avatar
    Join Date
    Nov 2008
    Location
    Colchester, Essex
    Posts
    475
    Thank Post
    69
    Thanked 69 Times in 55 Posts
    Rep Power
    35
    Quote Originally Posted by tosh74 View Post
    Just update the \\server\share$ part and assign logon and logoff trackers as logon / logoff users scripts
    Mega, just got this working, very happy here.

  10. #23
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    34
    Quote Originally Posted by ChrisP View Post
    I log to a mysql database, i find it to be a neat solution... then it's redisplayed via iis to a admin screen.

    that way i can search and connect via vnc with 1 click when a user requires assistance
    I do something similar logging to an MSSQL database. One of the advantages over a text file is that I only have to give access to add entries so the users can't delete all the records.

    As you say it's also easier to build web based reports if you're looking at a SQL database. We have one-click access into the user's web logs for that day I think I can build a link in to our CCTV system too, but I've never had the time...

  11. #24
    mb2k01's Avatar
    Join Date
    Jan 2007
    Posts
    1,138
    Thank Post
    189
    Thanked 230 Times in 195 Posts
    Rep Power
    92

    Thumbs up

    Just a quick one...
    I stumbled accross this post and tested to see if it worked.
    All I can say is WOW - thanks! Works like a dream (took 5 mins to set up and start logging!)

  12. #25

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,263
    Thank Post
    965
    Thanked 324 Times in 192 Posts
    Blog Entries
    11
    Rep Power
    165
    Quote Originally Posted by NeoPlosive View Post
    Started using this properly on January 23rd.

    Made some edits to the VBS scripts for a simple line input into the text files.

    Set up the shares on our second DC and then watched the logging start

    Only additional thing I've done is set up a batch script which archives the log files into a daily folder at 23:59 each night (scheduled task) and then clears out the active folders.

    i.e.

    $:\$$$Tracker\Users
    $:\$$$Tracker\Computers

    to

    $:\$$$Tracker\Archive\DD-MM-YYYY\Users
    $:\$$$Tracker\Archive\DD-MM-YYYY\Computers

    This will eliminate the need to ever do a tidy up or clear out.

    Only thing I have noticed is some machines aren't logging... most likely because they're just wanting a rebuild back on to CC3.
    Neo - fancy putting that script up for us to use?

    Gareth

  13. #26

    Join Date
    Dec 2008
    Posts
    197
    Thank Post
    7
    Thanked 32 Times in 18 Posts
    Rep Power
    18
    Here it is...

    Code:
    @echo off
    title SPCTracker Archive Script
    echo.
    echo This batch script is archiving the days logfiles from SPCTracker.
    echo.
    
    echo.
    echo Access Physical Server Archive Location
    echo.
    D:
    cd \
    cd SPCTracker
    cd Archive
    echo.
    echo Begin Archive Structuring for Day
    echo.
    md "%date:/=-%"
    cd "%date:/=-%"
    md "Users"
    md "Computers"
    echo.
    echo Back up to SPCTracker Root
    echo.
    cd ..
    cd ..
    echo.
    echo Start Copying Users Logfiles
    echo.
    cd Users
    move *.* "../Archive/%date:/=-%/Users/"
    cd ..
    echo.
    echo Start Copying Computers Logfiles
    echo.
    cd Computers
    move *.* "../Archive/%date:/=-%/Computers/"
    cd ..
    echo.
    echo Process Complete!
    echo.
    exit
    Make sure you change the physical server archive location in the script appropriately - Drive:\Folder[...]\Archive

    You'll need to manually create the Archive folder within the root of your Record Logons folder otherwise it'll all get very messy.

    I find at the end of each month it's best to grab all of the months folders and then archive them manually into folders like:

    2009_01 (Jan)
    2009_02 (Feb)
    2009_03 (Mar)

    etc

  14. Thanks to NeoPlosive from:

    bugginmiami (23rd April 2009)

  15. #27

    Join Date
    Jul 2007
    Location
    Miami, Fl
    Posts
    3
    Thank Post
    4
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    The scripts posted by tosh74 and Neoplosive were almost exactly what I needed! thanks!

    Quick question, has anyone added another field thats logged for the IP address?

    I know its beyond me unfourtuantely!

  16. #28
    Alis_Klar's Avatar
    Join Date
    Oct 2007
    Location
    East Birmingham
    Posts
    291
    Thank Post
    148
    Thanked 21 Times in 11 Posts
    Rep Power
    18
    we use these lines in our login script
    Code:
    rem LOG USER AND IP======================================================================================
    @for /f "tokens=2* delims=:. " %%a in ('ipconfig ^| find /i "ip address"') do Echo %date%,%time%,%username%,'%computername%,%%b >>k:\ICTtech\TechlogIP.txt
    rem =====================================================================================================

  17. #29

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    640
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324
    I made my own, Login Tracker, using VBScripts and PHP/MySQL.

    Info and Download.

    v2 is a work in progress and will encompass a much-improved UI (like this). I'm also debating over using CouchDB instead of/as well as MySQL for data storage.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. A record day
    By Dos_Box in forum General EduGeek News/Announcements
    Replies: 11
    Last Post: 25th January 2006, 01:04 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •