klop Posted March 30, 2012 Report Posted March 30, 2012 (edited) 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! Edited March 30, 2012 by klop My useless title and its misleading potential!!
Steve21 Posted March 30, 2012 Report Posted March 30, 2012 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
klop Posted March 30, 2012 Author Report Posted March 30, 2012 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
Steve21 Posted March 30, 2012 Report Posted March 30, 2012 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
cpjitservices Posted March 30, 2012 Report Posted March 30, 2012 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
cpjitservices Posted March 30, 2012 Report Posted March 30, 2012 @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 1
klop Posted March 30, 2012 Author Report Posted March 30, 2012 (edited) 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 Edited March 30, 2012 by klop
FN-GM Posted March 30, 2012 Report Posted March 30, 2012 Another version here: http://www.edugeek.net/forums/how-do-you-do/92142-who-has-logged-where.html#post804369
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now