?
Solved

User login reporting server 2008 R2

Posted on 2014-02-12
3
Medium Priority
?
261 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 1500 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Suggested Courses

764 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