Solved

daily login & logoff time in Domain

Posted on 2013-11-18
11
426 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
 

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now