This script returns information about who is loggedon to a computer or server. It will output the user name, type of log on, status and log-on time.
username: the username of the person who logged in to the computer
Log-on type: How the user logged on remote/local
Status: If local log-on then if the computer is locked/unlocked
Log-on Time: The time the user logged-on. (local only)
Working on adding logon times for remote users logged-on.