Solved

Is there a way to retrieve computer name and who logged in active directory in windows server 2012

Posted on 2016-11-20
5
83 Views
1 Endorsement
Last Modified: 2016-11-23
Is there way to retrieve such information.
1
Comment
Question by:akosinoah
5 Comments
 
LVL 3

Expert Comment

by:Pune Tech
ID: 41894710
You need to first enable logon auditing to have Windows track which user accounts log in and when.

The Audit logon events setting tracks both local logins and network logins. Each logon event specifies the user account that logged on and the time the login took place. You can also see when users logged off.

http://www.howtogeek.com/124313/how-to-see-who-logged-into-a-computer-and-when/
1
 
LVL 22

Expert Comment

by:yo_bee
ID: 41894819
Are you looking to see who access AD and did changes?
Here is a link to a publish how to from MS

https://technet.microsoft.com/en-us/library/cc731607(v=ws.10).aspx
0
 
LVL 18

Accepted Solution

by:
Mal Osborne earned 500 total points
ID: 41895315
It is POSSIBLE, but awful difficult to get this data by parsing security logs on all DCs.

A better way is to set up scripts, push them out via group policy, and have them create text files with the data as you would like it. Pretty simple to set up, and works well. Just add the scripts as user login & logout scripts into a GPO and apply it.

Log In %Date% %TIME% %USERNAME% >> \\servername\Logs\Computer\%COMPUTERNAME%.log

Open in new window

Will give you a text file for each machine, with a line for each user logging in. (or out)

Log In %Date% %TIME% %COMPUTERNAME% >> \\servername\Logs\User\%USERNAME%.log

Open in new window

Will give you a text file for each user, with machines they logged into.
0
 
LVL 18

Expert Comment

by:Mal Osborne
ID: 41895323
Here is a big discussion about using login scripts for that purpose:

http://blogs.msmvps.com/kwsupport/2005/02/24/lazy-mans-way-to-track-user-logonlogoff/
0
 
LVL 1

Author Closing Comment

by:akosinoah
ID: 41898726
thank you
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
harden EXCH2013 7 54
Exchange Server 2013 Message Tracking log Powershell ? 11 79
How to properly configure _msdcs child zone? 14 28
Application timeout 4 37
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

685 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