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 ...
30th March 2012, 10:19 AM #1
- Rep Power
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!!
IDG Tech News
30th March 2012, 10:21 AM #2
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
30th March 2012, 10:25 AM #3
- Rep Power
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
30th March 2012, 10:34 AM #4
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)
30th March 2012, 12:18 PM #5
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
30th March 2012, 12:19 PM #6
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
Thanks to cpjitservices from:
30th March 2012, 01:18 PM #7
- Rep Power
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
Last edited by klop; 30th March 2012 at 01:19 PM.
30th March 2012, 01:19 PM #8
By tosca925 in forum Wireless Networks
Last Post: 6th December 2008, 06:55 AM
By ChrisP in forum How do you do....it?
Last Post: 7th December 2007, 04:23 PM
By Halfmad in forum Network and Classroom Management
Last Post: 23rd August 2007, 03:16 PM
By Paid_Peanuts in forum MIS Systems
Last Post: 29th June 2007, 01:06 PM
By Kyle in forum Thin Client and Virtual Machines
Last Post: 7th March 2007, 11:46 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)