Solved

daily login & logoff time in Domain

Posted on 2013-11-18
11
430 Views
Last Modified: 2013-11-24
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
0
Comment
Question by:AXISHK
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 6

Accepted Solution

by:
xeroxzerox earned 250 total points
ID: 39655703
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
 

Author Comment

by:AXISHK
ID: 39655711
Tks but I need to create a log file daily and summarize all the information there..
0
 
LVL 6

Expert Comment

by:xeroxzerox
ID: 39655717
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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:AXISHK
ID: 39655722
Sorry, I can't get your idea.

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

Tks
0
 
LVL 6

Expert Comment

by:xeroxzerox
ID: 39655735
It generate only a single log file 'cause here we insert >> in script...it use to don't override data in log file.
0
 
LVL 10

Expert Comment

by:Pramod Ubhe
ID: 39655748
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
 

Assisted Solution

by:srsysdoc
srsysdoc earned 250 total points
ID: 39655934
Hi,

  Find the attached document. It may helpful to you.
Auditing--AD-User.doc
0
 

Author Comment

by:AXISHK
ID: 39656039
It is a window 2003 server. can it support powershell ?
0
 

Expert Comment

by:srsysdoc
ID: 39656046
PowerShell Only Supports server 2008 and 2012.
0
 
LVL 2

Expert Comment

by:daniel0
ID: 39656555
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
 

Author Closing Comment

by:AXISHK
ID: 39673693
Tks
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question