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

User login reporting server 2008 R2

Posted on 2014-02-12
3
257 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
  • 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
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…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

861 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