Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to tell when a user logged onto the domain?

Posted on 2014-11-12
12
388 Views
Last Modified: 2014-11-20
How can I easily find what time a user logged into their computer Monday morning from the server? I am using 2008R2
0
Comment
Question by:JRome225
12 Comments
 
LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 100 total points
ID: 40438734
Turn on auditing of Account Logon events.
0
 
LVL 1

Author Comment

by:JRome225
ID: 40438749
I do have the auditing on but its over 200K entries under security. I tried filtering it using the domain\username but it wouldn't show anything.
0
 
LVL 80

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 100 total points
ID: 40438810
you have to check each DC's security audit logs. What I do is run a logon script that simply does
echo %username% logged onto %computername% date >> \\server\share\logons.txt
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 24

Expert Comment

by:NVIT
ID: 40439067
Active Directory Administrative Center
0
 
LVL 1

Author Comment

by:JRome225
ID: 40440626
NewVillage, where about in the Admin Center would I find the logon report?
0
 
LVL 24

Expert Comment

by:NVIT
ID: 40440664
When you pick the user, it shows at the bottom right (attached)
greenshot-2014-11-13-08-19-18.png
0
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 200 total points
ID: 40440691
One way to report all users at once is with PowerShell...

Open a CMD prompt

powershell

import-module ActiveDirectory
Get-ADUser -Filter * -Properties "LastLogonDate" | sort-object -property lastlogondate -descending | Format-Table -property name, lastlogondate -AutoSize

Open in new window

0
 
LVL 1

Author Comment

by:JRome225
ID: 40440796
I need it from Monday, is that possible?
0
 
LVL 24

Expert Comment

by:NVIT
ID: 40440915
One out-of-the-box way is to set the GPO "Display information about previous logons during user logon".
But, I think by default this isn't set.

Computer Configuration| Policies | Administrative Templates | Windows Components | Windows Logon Options | Display information about previous logons during user logon = Enabled
0
 
LVL 24

Accepted Solution

by:
NVIT earned 200 total points
ID: 40441045
Another way is LogParser http://www.microsoft.com/en-us/download/details.aspx?id=24659

This gets all logons, including machine and users:
LogParser "SELECT TimeGenerated AS LogonDate, EXTRACT_TOKEN(Strings, 0, '|') AS Account INTO Report.tsv FROM Security WHERE EventID NOT IN (541;542;543) AND EventType = 8 AND EventCategory = 2"

Open in new window


Here's one to get a certain user:
LogParser "SELECT TimeGenerated AS LogonDate, EXTRACT_TOKEN(Strings, 0, '|') AS Account INTO Report.tsv FROM Security WHERE (EventID NOT IN (541;542;543) AND EventType = 8 AND EventCategory = 2 AND Account LIKE 'username')"

Open in new window

0
 
LVL 19

Assisted Solution

by:compdigit44
compdigit44 earned 100 total points
ID: 40443377
Depending on your security event log settings the logs may have already been removed
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

789 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