+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 25
How do you do....it? Thread, Who has logged on where? in Technical; Can anybody tell me how I can get a log of of all our pupils and staff logons? It's mainly ...
  1. #1

    Join Date
    Sep 2011
    Posts
    14
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Who has logged on where?

    Can anybody tell me how I can get a log of of all our pupils and staff logons?

    It's mainly to be able to show who was sat a particular PC at a particular time (in the event of vandalism etc.)

    Thanks

  2. #2

    Join Date
    Jan 2012
    Location
    Luton
    Posts
    121
    Thank Post
    22
    Thanked 15 Times in 12 Posts
    Rep Power
    8
    I have a batch script for this. PM me your email if you'd like a copy!

  3. #3
    british_government's Avatar
    Join Date
    Feb 2009
    Posts
    160
    Thank Post
    24
    Thanked 20 Times in 15 Posts
    Rep Power
    36
    Im sure there is probably a built in windows solution but i highly recomend this software. Computer and Internet Monitoring Software - Forensic Software
    Policy Central takes screen captures if any banned word ever appears on a student's screen, you can get a lot of false positives but even if it is just 0.1% you pick up it is worth it.

    Also, back to your original post, you can setup an AUP that shows on every logon and it records, who when and where this AUP is accepted, making tracking machine and students is very very easy.

  4. #4

    Join Date
    Jul 2011
    Location
    Essex
    Posts
    210
    Thank Post
    22
    Thanked 34 Times in 29 Posts
    Rep Power
    25
    If you go to the C: drive of a station, and (depending on OS) navigate to the Users folder or Documents & Settings on Windows 7, and then all you have to do is filter it into date order accordingly. Shows the date/time logged out of stations for us. Not sure if this is the kind of solution you had in mind but it's a start at least hopefully.

  5. Thanks to SC92 from:

    RiffRaff (16th March 2012)

  6. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,942
    Thank Post
    886
    Thanked 1,694 Times in 1,472 Posts
    Blog Entries
    12
    Rep Power
    447
    I use these batch files at logon and logoff

    Code:
    rem The following line creates a rolling log file of usage by workstation
    echo Log In %Date% %TIME% %USERNAME% >> \\server\share\%COMPUTERNAME%.log
    
    rem The following line creates a rolling log file of usage by user
    echo Log In %Date% %TIME% %COMPUTERNAME% >> \\server\share\%USERNAME%.log

    Code:
    rem The following line creates a rolling log file of usage by workstation
    echo Log Out %Date% %TIME% %USERNAME% >> \\server\share\%COMPUTERNAME%.log
    
    rem The following line creates a rolling log file of usage by user
    echo Log Out %Date% %TIME% %COMPUTERNAME% >> \\server\share\%USERNAME%.log

  7. 7 Thanks to FN-GM:

    Davit2005 (20th March 2012), JRyce (29th March 2012), ninjabeaver (18th March 2012), RiffRaff (16th March 2012), sidewinder (20th March 2012), titch (20th March 2012), vizubeat (30th March 2012)

  8. #6

    Join Date
    Jan 2012
    Location
    Luton
    Posts
    121
    Thank Post
    22
    Thanked 15 Times in 12 Posts
    Rep Power
    8
    Exactly the same here

    Quote Originally Posted by FN-GM View Post
    I use these batch files at logon and logoff

    Code:
    rem The following line creates a rolling log file of usage by workstation
    echo Log In %Date% %TIME% %USERNAME% >> \\server\share\%COMPUTERNAME%.log
    
    rem The following line creates a rolling log file of usage by user
    echo Log In %Date% %TIME% %COMPUTERNAME% >> \\server\share\%USERNAME%.log

    Code:
    rem The following line creates a rolling log file of usage by workstation
    echo Log Out %Date% %TIME% %USERNAME% >> \\server\share\%COMPUTERNAME%.log
    
    rem The following line creates a rolling log file of usage by user
    echo Log Out %Date% %TIME% %COMPUTERNAME% >> \\server\share\%USERNAME%.log

  9. 3 Thanks to MattHarwood:

    cpjitservices (19th March 2012), ninjabeaver (18th March 2012), RiffRaff (16th March 2012)

  10. #7
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,478
    Thank Post
    515
    Thanked 287 Times in 263 Posts
    Rep Power
    81
    I can't get the script to create the log file... I get UNC not supported.

  11. #8

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,882
    Thank Post
    351
    Thanked 1,287 Times in 879 Posts
    Blog Entries
    4
    Rep Power
    1128
    Quote Originally Posted by cpjitservices View Post
    I can't get the script to create the log file... I get UNC not supported.
    Have you created the share at the server properly? [Have you created the share at all? (I ask this because I saw someone else make the same mistake a long time ago]
    Have you checked the Sharing Permissions/Security Permissions?
    Could there be an error in your script?

  12. #9
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,478
    Thank Post
    515
    Thanked 287 Times in 263 Posts
    Rep Power
    81
    Yep share created, Setup permissions so that the user accounts and admins can write to the folder.

    The script could be wrong but I copy and pasted it and all I changed was the part where I enter my servers details.

  13. #10

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,882
    Thank Post
    351
    Thanked 1,287 Times in 879 Posts
    Blog Entries
    4
    Rep Power
    1128
    Can you browse to the location on the server where you have set up the shares in [Windows] Explorer?

  14. #11
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,478
    Thank Post
    515
    Thanked 287 Times in 263 Posts
    Rep Power
    81
    Indeed I can, even on a standard user account I can browse to it, although it may be that batch files and CMD are disabled on accounts in GPO, I have copied the scripts into my netlogon folder and assigned them as logon and logoff scripts in GPO.
    Last edited by cpjitservices; 20th March 2012 at 08:45 AM.

  15. #12

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,882
    Thank Post
    351
    Thanked 1,287 Times in 879 Posts
    Blog Entries
    4
    Rep Power
    1128
    Can you run the batch file as a privileged [Administrator/Technician?] user?

    Does it create the entries in the log file[s] as you would expect?

  16. #13

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49
    Quote Originally Posted by FN-GM View Post
    I use these batch files at logon and logoff

    Code:
    rem The following line creates a rolling log file of usage by workstation
    echo Log In %Date% %TIME% %USERNAME% >> \\server\share\%COMPUTERNAME%.log
    
    rem The following line creates a rolling log file of usage by user
    echo Log In %Date% %TIME% %COMPUTERNAME% >> \\server\share\%USERNAME%.log

    Code:
    rem The following line creates a rolling log file of usage by workstation
    echo Log Out %Date% %TIME% %USERNAME% >> \\server\share\%COMPUTERNAME%.log
    
    rem The following line creates a rolling log file of usage by user
    echo Log Out %Date% %TIME% %COMPUTERNAME% >> \\server\share\%USERNAME%.log
    Thankyou for this, so simple I dont know why I didnt think of it before. Previously had everything writing to a single file, which obviously made it a huge pain trying to search through for a single PC/user

  17. #14

    Join Date
    Jan 2012
    Posts
    84
    Thank Post
    1
    Thanked 4 Times in 4 Posts
    Rep Power
    6
    Any way to get this to write to a database, either via a bat or vbs/powershell ?

  18. #15

    Join Date
    Jan 2012
    Posts
    84
    Thank Post
    1
    Thanked 4 Times in 4 Posts
    Rep Power
    6
    found it, this is what I needed to use

    IPCONFIG |FIND "IP" > %TEMP%.\TEMP.DAT
    FOR /F "tokens=2 delims=:" %%a in (%TEMP%.\TEMP.DAT) do set IP=%%a
    del %TEMP%.\TEMP.DAT
    set IP=%IP:~1%

    echo %username%, %computername%, %date%, %time%, %ip% >>\\server\share\logon.csv

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. restricting who can log on to a certain machine
    By RabbieBurns in forum Windows
    Replies: 8
    Last Post: 2nd May 2008, 02:37 PM
  2. finding out who has logged into a PC in AD
    By Oops_my_bad in forum Windows
    Replies: 6
    Last Post: 22nd November 2007, 03:51 PM
  3. Who is (logged) on..
    By PiqueABoo in forum Scripts
    Replies: 5
    Last Post: 5th August 2007, 12:06 PM
  4. Seeing who is logged on
    By faza in forum Wireless Networks
    Replies: 5
    Last Post: 6th December 2006, 09:19 AM
  5. Who last logged on
    By danIT in forum Windows
    Replies: 1
    Last Post: 2nd October 2006, 09:08 AM

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
  •