To get the last time Windows Users logged in to a Windows Domain Server just type this into Windows Power Shell:
$([ADSI]"WinNT://$env:COMPUTERNAME").Children | where {$_.SchemaClassName -eq 'user'} | ft name,lastlogin
Unix & Coding
To get the last time Windows Users logged in to a Windows Domain Server just type this into Windows Power Shell:
$([ADSI]"WinNT://$env:COMPUTERNAME").Children | where {$_.SchemaClassName -eq 'user'} | ft name,lastlogin