From http://community.spiceworks.com/scripts/show/1905-get-logon-times-and-types-unlock-actual-etc