daily login & logoff time in Domain

Is it possible to list out the daily login & logoff time for each user in a Window 2003 domain ?

We want to use it as a attendance record.

Tks
AXISHKAsked:
Who is Participating?
 
xeroxzeroxConnect With a Mentor Commented:
Hi,
you need to make script & put it to GPO LOGIN & LOGOUT option

@echo off
cls
set AuditPath=\\ipaddress (where you want record)\Audit

echo ************************************** >> %AuditPath%\loginlog.txt
echo Logon: %computername% %username% >> %AuditPath%\loginlog.txt
date /t >> %AuditPath%\loginlog.txt
time /t >> %AuditPath%\loginlog.txt
echo ************************************** >> %AuditPath%\loginlog.txt

echo Logging IP and Open Ports for computer...
ipconfig >> %AuditPath%\%computername%.txt
netstat -a >> %AuditPath%\%computername%.txt
0
 
AXISHKAuthor Commented:
Tks but I need to create a log file daily and summarize all the information there..
0
 
xeroxzeroxCommented:
yeah but when you put that script in GPO login & logout option then it run automatically when next day client (user) login in system.
It capture the detail and provide to you.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
AXISHKAuthor Commented:
Sorry, I can't get your idea.

Can I just generate a single log, rather than each individual file ?

Tks
0
 
xeroxzeroxCommented:
It generate only a single log file 'cause here we insert >> in script...it use to don't override data in log file.
0
 
Pramod UbheCommented:
Powershell can get you the last login time stamp but a 'smart' user can also schedule a task in computer for auto logon if he know you are pulling login information.

PS C:\> Get-ADUser tester -Properties LastLogonDate | select name,LastLogonDate

name                                                        LastLogonDate
----                                                        -------------
Tester                                                      5/9/2013 6:45:52 AM


PS C:\>
0
 
srsysdocConnect With a Mentor Commented:
Hi,

  Find the attached document. It may helpful to you.
Auditing--AD-User.doc
0
 
AXISHKAuthor Commented:
It is a window 2003 server. can it support powershell ?
0
 
srsysdocCommented:
PowerShell Only Supports server 2008 and 2012.
0
 
daniel0Commented:
There are some scripts for the same but you cant rely, You can go for an freeware application also for the same.

Please have a look

<link removed - GaryC123>

And freeware application

Thanks.
0
 
AXISHKAuthor Commented:
Tks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.