Script Download: FindUserLogonDuration.zip
http://gallery.technet.microsoft.com/scriptcenter/Find-user-logon-duration-667b8c48

This script can be used to collect user logon duration from multiple computers. You can also use the data to generate a report. The user logon duration calculation is based on the general algorithm, Logon duration = Logoff date time - Logon date time. In a real world, IT Administrators may need to collect user logon duration from multiple computers. User logon duration data can be useful when IT Administrators are troubleshooting some issues.

 

image image
image image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery