Solved

User login reporting server 2008 R2

Posted on 2014-02-12
3
258 Views
Last Modified: 2014-04-17
Hello -

I am wondering if there is a way to generate a report on the login history for a user? I found where I can see who is currently logged on (Computer management > Sessions), but is there a log somewhere of the history?

If Windows Server does not record this information, can you suggest a 3rd party tool that might?

Thanks!
Joe
0
Comment
Question by:jcaprio
[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
  • 2
3 Comments
 
LVL 26

Expert Comment

by:pony10us
ID: 39853534
Are you wanting to check past history or going forward? Is all you want is the user and time they log in?

Something as simple as adding this to the login script would work:

rem The following line creates a rolling log file of usage by user
echo Log In %Date% %TIME% %COMPUTERNAME% >> \\servername\Logs\User\%USERNAME%.log

and if you want log off as well:

rem The following line creates a rolling log file of usage by user
echo Log Off %Date% %TIME% %COMPUTERNAME% >> \\servername\Logs\User\%USERNAME%.log

This will give you a running log of what computer and when in a file with the users name. You can reverse the %COMPUTERNAME% and %USERNAME% if you want to monitor by computer (who logs into a specific computer and when).
0
 

Author Comment

by:jcaprio
ID: 39853828
Hello -

I would like to check past history as well as going forward if possible? Is there a solution for both ways at this point?

Would you please give a detailed description on how to set up your suggestion above and also where to go to view the results?

Thank you!
0
 
LVL 26

Accepted Solution

by:
pony10us earned 500 total points
ID: 39853899
To review past history you will have to rely on the event viewer.  It depends on how much history is retained in the event viewer and then you have to search it for logon events 528 and 540 for successful logons.

As for how to implement the code above, simply add the first one to the logon script and the second one to the logoff script of your domain. It will create a file in the shared folder "\\servername\logs" (replace "servername" with the name of the server you where the share is located) named for the user with a .log extension which you can open/read with notepad since it is just a text file.

Let me know if I need to explain further.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
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…

749 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