Any reason not to simply read the system log (or is it security?) for sign on events?
Powershell & WMI are likely what you need. On Apr 4, 2012 7:32 AM, "Thane Sherrington" <[email protected]> wrote: > I'm trying to find out the last time a user logged in. I'm using: > > net user %1 | findstr /B /C:"Last logon" > > When I use this on my account, I get: > > Last logon 4/3/2012 6:39 PM > > Which is inaccurate. I only hibernate my computer, and the last time I > rebooted was yesterday around 2PM. Any idea what gives? > > T > > >
