Get-LastLogon - Determine The Last LoggedOn User - Outputs Object

This function will list the last user logged on or logged in.  It will detect if the user is currently logged on via WMI or the Registry, depending on what version of Windows it runs against.

17,111 times
Add to favorites
E-mail Twitter Digg Facebook