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.
Comments
No comments yet.
Comment on GitHub →
Comments are GitHub Discussions: you need a GitHub account, and what you write there is public on GitHub. New comments show up here within a few minutes.