+ Post New Thread
Results 1 to 8 of 8
Windows Server 2008 Thread, PC and User use logging in Technical; Hi, i'm sure this must be reasonably simple and i'm missing something staring me in the face but... I want ...
  1. #1

    Join Date
    Feb 2009
    Location
    Suffolk, UK
    Posts
    121
    Thank Post
    22
    Thanked 1 Time in 1 Post
    Rep Power
    0

    PC and User use logging

    Hi, i'm sure this must be reasonably simple and i'm missing something staring me in the face but...

    I want to log use on our network.
    I need to know when a user has logged on and a total count of how many times.
    I'd also need to know when a laptop has been used on the network and also a total count of how many times.
    Might be good if I could see in the same logs user / machine logs too.

    Neither of these need to be an alert or an instant notification.
    I just need to access a count of use - hope that makes sense?

    Cheers guys and gals

    Sorry the title is a tad misleading - I do not (yet) want to know all use - just how many times a user account or machine has been used in school - perhaps a mod could change my title to something better? Sorry!
    Last edited by klop; 30th March 2012 at 10:21 AM. Reason: My useless title and its misleading potential!!

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Unless you're doing something fancy with system logs, easiest way is normally having a login script that writes to database/files etc. Not exactly high-tech but works

    Steve

  3. #3

    Join Date
    Feb 2009
    Location
    Suffolk, UK
    Posts
    121
    Thank Post
    22
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I did think of that - so everytime a machine logs in write to a txt file on the server somewhere?
    Is this something you do?

    I though something along the lines of all machines in a txt and a +1 count number next to them?
    Couldn't really figure how that might work though?
    Or would it need to be seperate txt files for all machines, with the filename being machine name +1 every login?

    Neither do I have the time to get my head round at the moment

    Cheers

  4. #4

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    We've got custom system for restricting logons that works on database. But could work just as well with text files. Whether you have 1 per pc, or user or whatever you wnat to know really I guess

    If you want single file, you'd just have pc name - user name - logon/off etc for logging (Single insert line commands)

    Steve

  5. #5
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,421
    Thank Post
    508
    Thanked 282 Times in 258 Posts
    Rep Power
    81
    I have a script for Logon and logoff - it basically writes a log file on a remote server - If I look now in my log I can see who has logged on this morning and who has logged off, exact time / & dat. It also includes things like Profile path etc etc

  6. #6
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,421
    Thank Post
    508
    Thanked 282 Times in 258 Posts
    Rep Power
    81
    @echo off
    color F0
    echo IT Services Logon Script
    net use L: \\10.10.1.64\data\logs /U:username password
    echo **User Logon** UserName: "%USERNAME%" ComputerName: %COMPUTERNAME% UserDomain: %USERDOMAIN% UserProfile: %USERPROFILE% System Time: %TIME% **Mapped Home Drive** %homedrive% System Date: %DATE% Currently Attached Server: %LOGONSERVER% >>L:\Logon.txt
    echo Log file written - Task Complete!
    net use L: /del /yes
    timeout 7

  7. Thanks to cpjitservices from:

    klop (30th March 2012)

  8. #7

    Join Date
    Feb 2009
    Location
    Suffolk, UK
    Posts
    121
    Thank Post
    22
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Thanks, i'll give that a try.

    I'd like to have in addition a count of all previous logins.
    I'd like to know how many times a teachers or pupils laptop has been logged in at school for example.

    Something like; Laptop-xx : xx Logins : Last Login xx/xx/xx : Last user xxxxxxx

    Be good if one text file listed all laptops but if two laptops are being switched on at the same time I assume they'd not both be able to write to it at the same time. So - maybe a text file for each laptop?

    I guess i need to edit a txt file with a login script? Is that possible?

    i'm off for the Easter break (i'm term time only) but will give me something to think about and have a good look at when back

    Thanks
    Last edited by klop; 30th March 2012 at 01:19 PM.

  9. #8

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,824
    Thank Post
    875
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    Another version here: Who has logged on where?

SHARE:
+ Post New Thread

Similar Threads

  1. Settign up router for PC and MAC (Home Use)
    By tosca925 in forum Wireless Networks
    Replies: 4
    Last Post: 6th December 2008, 06:55 AM
  2. automatic VNC to PC a user is logged onto
    By ChrisP in forum How do you do....it?
    Replies: 2
    Last Post: 7th December 2007, 04:23 PM
  3. NSS 9 - tutor PCs need setup for every user that logs on.
    By Halfmad in forum Network and Classroom Management
    Replies: 4
    Last Post: 23rd August 2007, 03:16 PM
  4. SIMS.NET using PC at front of classroom and projector use.
    By Paid_Peanuts in forum MIS Systems
    Replies: 14
    Last Post: 29th June 2007, 01:06 PM
  5. Virtual PC and using DHCP
    By Kyle in forum Thin Client and Virtual Machines
    Replies: 2
    Last Post: 7th March 2007, 11:46 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
  •