Get Last Logon User
How to Get Last Logon Date of an User with Powershell:
#store in Variable an object contains LastLogon User
$user = Get-ADUser $userName -Server $hostname | Get-ADObject -Properties lastLogon
#Store just LastLogon Value
$time=$user.LastLogon
#Display Date in proper format to read
[DateTime]::FromFileTime($time)