Solved

User login reporting server 2008 R2

Posted on 2014-02-12
3
253 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

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…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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 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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now