Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2007

User Logon Tracking Redux

Computer tech Jeremy Schubert proposes an alternative to another IT Pro Hero's solution
RSS
Subscribe to Windows IT Pro | See More Security Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Windows Server 2008 in Perspective

A recent IT Pro Hero, Michael Dragone, discussed his batch-file solution for tracking employee logons on the company network and logoffs by user and computer (see "It's 10:00 p.m.: Do You Know Who's Logged On?" June 2007, InstantDoc ID 95922). Michael's solution consisted of a logon script that records the time a user logs on or off a machine and the computer being accessed, then writes this information to a log file on a server share. But one of my colleagues, Barry, a tech in the Calgary Separate School District in Calgary, Alberta, the same school district for which I work, discovered a potential loophole when he tried using a similar solution. In order for the information to be appended to the log file, users would require write access to the log file—so a student could possibly tamper with the log file. To avoid this problem, I developed a solution for my employer, Bishop Grandin High School in the Calgary Separate School District, which uses a Group Policy Object (GPO) to turn on event-log auditing, then transfers those event logs to a central network share that users can't access.

Creating the GPOs
To start, I enabled the Computer Configuration GPO that turns on the auditing of logon events on a computer (we're running Windows XP Professional on all student workstations and Windows Server 2003 on our servers). Web Figure 1 (http://www.windowsitpro.com, InstantDoc ID 96633) shows this GPO. The GPO set the computers to write the user-name used to log on to the computer, the computer shutdown or restart time, and the logon attempt's success or failure to the System event log. (Of course, this method wouldn't tell us whether a student was using another student's account name and password.)

At the school, we force users to shut down or restart their computers at the end of their session rather than simply log off. On the students' computers we use Faronics Deep Freeze (http://www.faronics.com), a product that preserves a computer's original configuration by clearing any changes made to the computer and any files saved on the computer when the computer is rebooted. Thus, the next logical step in my solution was to institute a shutdown GPO, which runs a startup/shutdown script on a computer and transfers the computer's event logs to the central share using the freeware EventSave utility (more about EventSave shortly). I opted to use a computer-based GPO for the shutdown so that we wouldn't need to worry about giving a user account any special access privileges.

Moving the Logs
I knew that Frank, a systems analyst for our school division, used the freeware EventSave utility from Frank Heyne Software (http://www.heysoft.de/frames/f_home_en.htm) on his server builds. You can use the utility (eventsave.exe) in a batch file to transfer event log files from one computer to another. Frank uses scheduled batch files to regularly clear our servers' event logs while still maintaining the logs in a central location if we ever need to look up log information.

I decided to use the same method on my student workstations as part of my solution to track students' computer use. I created the following batch file (adapting its syntax from the EventSave FAQ at http://www.heysoft.de/Frames/f_faq_evt_en.htm):

start /wait \\server\share$\EventSav.exe \\server\ _
share-to-where-event-logs-are-saved /c 

(Note that the /c switch terminates the cmd.exe window and also that the previous line wraps to multiple lines because of space print constraints. You should type the actual command on one line.) Because we were simply transferring the event logs to a central share, users couldn't tamper with a log file, since no log file would exist.

Searching the Logs
After I developed the logging and shutdown mechanisms, my final step was to create an easy way to search the collection of saved event logs for events confirming an account's successful or unsuccessful logon/logoff and events stating when the computer was successfully shut down. To do so, I used the utility in the Windows Scripting Solutions article "The Event Log Query Utility," December 2006, InstantDoc ID 93973, to set up an HTML Application (HTA) that searches event logs for specific event IDs, then generates a Microsoft Excel spreadsheet containing the ID, audit type, and description of each event in the log. (Windows Scripting Solutions is now Scripting Pro VIP. For more information, go to http://www.scriptingprovip.com.) I also referred to the Microsoft article "Security Event Descriptions" (http://support.microsoft.com/?kbid=174074) to obtain information about the ID numbers used for successful and unsuccessful logon attempts.

We store the saved event-log information for a term (about two months), then typically delete it. Because of Alberta's privacy laws, only IT staff members have direct access to the logs at present. We can easily view the saved logs via the Event Viewer. Although the logs are maintained chiefly for security purposes, we can also make them available, on request, to administrative staff or teachers to provide information such as the frequency of use of computers by students, classrooms, and programs and peak-usage times.

Easy Information Access
We've been using the GPO-based solution since April. So far, the solution's chief benefit is that it gives IT an easy way to search for computer-use information upon request. Like most IT professionals, I'm used to running around to put out fires. But taking a little extra time to anticipate our staff's need for information about students' computer use has helped me to think more proactively about my IT role.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

SET Options and Recompilation

Learn how to tweak your server's SET options so that you don't have to constantly recompile. ...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events Top 10 Email Security Challenges and Solutions

Introduction to Identity Lifecycle Manager "2"

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing