Users Last Logon Time to Computer | WMI > Win32_UserProfile

If you want to see a specific users last logon time to a machine use:

gwmi Win32_UserProfile -ComputerName ComputerName | where { $_.LocalPath -eq "c:\users\username" } | select LastUseTime

Please note that this only works if the users profile is really in the default Windows7 Directory.

Leave a Reply

Your email address will not be published.

*