Solved

How to tell when a user logged onto the domain?

Posted on 2014-11-12
12
390 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
[X]
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
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 20

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

Suggested Solutions

There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

726 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